Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Deleting/disabling register.php

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-06-2009, 03:15 PM
  beetlejuice's Avatar 
beetlejuice beetlejuice is offline
 

eXpert
  
Join Date: Apr 2007
Posts: 251
 

Default 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
Reply With Quote
  #2  
Old 04-06-2009, 03:26 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default 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
Reply With Quote
  #3  
Old 04-06-2009, 04:21 PM
  beetlejuice's Avatar 
beetlejuice beetlejuice is offline
 

eXpert
  
Join Date: Apr 2007
Posts: 251
 

Default 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
Reply With Quote
  #4  
Old 04-06-2009, 04:49 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Deleting/disabling register.php

Make backups first.... as always

Open register.tpl and at the top before all the code insert
Code:
{if $login eq ""} You have to be a member to access this page (or you can redirect to login page or contact us page...) {else}

and at the very bottom of the file insert
Code:
{/if}

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
Reply With Quote

The following user thanks cflsystems for this useful post:
beetlejuice (04-06-2009)
  #5  
Old 04-06-2009, 05:30 PM
  beetlejuice's Avatar 
beetlejuice beetlejuice is offline
 

eXpert
  
Join Date: Apr 2007
Posts: 251
 

Default 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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:13 AM.

   

 
X-Cart forums © 2001-2020