HarryAdney Posted December 6, 2018 Share Posted December 6, 2018 Hi everyone, I have a signup for shared hosting. On the manage orders page, where I can manually accept, cancel, cancel and refund, etc., the following information shows: Item Description Billing Cycle Amount Status Payment Status Shared Hosting Hosting Packages - Unlimited Package datasupplies.harryadney.com (www whois intoDNS) Monthly £19.99 Pending Incomplete The domain appears to be a subdomain of my domain (harryadney.com). Is this normal until the order is accepted? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 6, 2018 Share Posted December 6, 2018 at a guess, I would think that when ordering, they've just selected the "use existing domain" option and entered datasupplies.harryadney in there... a little naughty of them if you aren't offering subdomains with the product... if true, i'd put this more in the category of fraud than misconfiguration... but do a dummy test order, similar to above (datasupplies2.harryadney), and see if it looks the same on the Manage Orders page. 0 Quote Link to comment Share on other sites More sharing options...
HarryAdney Posted December 6, 2018 Author Share Posted December 6, 2018 Awesome brian!, Thanks for getting back to me on this so quickly. Is there a setting I can use to stop people doing this? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 6, 2018 Share Posted December 6, 2018 1 hour ago, HarryAdney said: Is there a setting I can use to stop people doing this? sadly not - there are few checks with the cart in general, and fewer with the existing domain option... you'll be looking at editing the template or using a hook. if thinking of editing the template, you could use HTML5 patterns as per the thread below... if you would prefer to use a hook, there would be a number of ways - ShoppingCartValidateDomain would be one way, using jQuery would be another - in fact, @stormy recently posted code that i've quickly rewritten for your purpose as a hook (attached).. it will do a number of things - firstly, if someone tries to add 'harryadney' to the sld input (left input field), then it removes that string... so in your case, if they had entered 'datasupplies.harryadney', the hook would change that too 'datasupplies' - the order will still go though because we're not checking whether datasupplies.com exists or not, but they shouldn't be able to use your domain (or any others that you add) from now on. additionally, if somebody tries to play silly buggers and adds 'harryadney.com' to the tld input (right input field), it will get removed... e.g if they had entered 'datasupplies' in the sld field and 'harryadney.com' in the tld field, the order will still likely have gone through (that might be another way of how they did it)... with this hook, it won't progress any further because the tld field will be empty and they will have to enter another TLD. owndomain.php 0 Quote Link to comment Share on other sites More sharing options...
HarryAdney Posted December 6, 2018 Author Share Posted December 6, 2018 Thanks mate. Do I just upload owndomain.php to the hooks folder? I'm not familiar with hooks, tbh. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 6, 2018 Share Posted December 6, 2018 9 minutes ago, HarryAdney said: Thanks mate. Do I just upload owndomain.php to the hooks folder? I'm not familiar with hooks, tbh. yeah, just plonk it in /includes/hooks and you should be good to go. 1 Quote Link to comment Share on other sites More sharing options...
HarryAdney Posted December 6, 2018 Author Share Posted December 6, 2018 Many thanks; all done. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.