| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Deleting/disabling register.php | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Deleting/disabling register.php
A client supplies wholesale only with an existing list of accounts. He doesn't want any casual browser to create a profile and purchase etc, so I removed the "Register" from the front of the site and also removed the link to register.php from the checkout process. They are now sent back to the contact us page to request an account application.
An issue has arisen where a retail customer has somehow bypassed the changes I have in place, and placed an order. I've been through the site a dozen different ways and cannot get pass the "Contact us for an account application". So the only thing I could think of is that this customer knows their way around and just went directly to the www.domain.com/register.php page and created a profile. The weird thing is though is that the cart only sent out an email to the client with the order, not with new profile created message also. If I simply rename or delete register.php to prevent this happening in future, it means that an existing account holder cannot modify their details either. Does anyone have a better option to prevent people (even clever ones) from registering? Thanks beetlejuice
__________________
XCart 4.5.4, 4.6.1, 4.64 stores Many, many mods from Altered Cart XCart Mods Reboot template The XCart Store Templates and Mods WCM CDSEO Pro BCSE Rewards Points and Gallery Mods and a few others |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: Deleting/disabling register.php
How about placing an if statement in register.tpl checking if customer is logged in before allowing register/change account details tpl to show? If your customers wants to change account details they have to be logged in anyway right?
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||||
|
|||||||||
Re: Deleting/disabling register.php
Sounds good Steve, but I'm not really good on if/then statements. I can never seem to get the parameters correct. Can you give me a heads up as to what it would like.
Thanks Greg
__________________
XCart 4.5.4, 4.6.1, 4.64 stores Many, many mods from Altered Cart XCart Mods Reboot template The XCart Store Templates and Mods WCM CDSEO Pro BCSE Rewards Points and Gallery Mods and a few others |
|||||||||
#4
|
|||||||||
|
|||||||||
Re: Deleting/disabling register.php
Make backups first.... as always
Open register.tpl and at the top before all the code insert Code:
and at the very bottom of the file insert Code:
This will show "You have to be a member to access this page" to anyone who is not logged in and tries to access register.php. Make sure this also works with your checkout
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#5
|
|||||||||
|
|||||||||
Re: Deleting/disabling register.php
Works a treat Steve thank you. I've edited the link in the checkout to go straight to the Contact Page anyway, but the register.php problem is solved.
Thanks again
__________________
XCart 4.5.4, 4.6.1, 4.64 stores Many, many mods from Altered Cart XCart Mods Reboot template The XCart Store Templates and Mods WCM CDSEO Pro BCSE Rewards Points and Gallery Mods and a few others |
|||||||||
|
|||
X-Cart forums © 2001-2020
|