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

Disable customer registration

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-28-2005, 11:48 AM
 
perryl7 perryl7 is offline
 

Member
  
Join Date: Dec 2005
Posts: 24
 

Default Disable customer registration

I am looking to disable all avenues of customer registration. My company wants to only allow access to customers in our client database for the time being. I have already handled the imported of the clients but I need to prohibit anyone from registering. My knowledge of Smarty templates is extremely limited. Thank you for your help.
__________________
perryl7 - X-Cart Gold 4.0.17
Reply With Quote
  #2  
Old 12-28-2005, 11:54 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

First comment out the login boxes on customer/home.tpl. You'll also need to surround the 'add to cart' and mini cart includes with this code so that non-registered users can't get to the cart or checkout process:

{if $login ne ""}

item you want to show only to registered users

{/if}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 12-30-2005, 06:32 AM
 
perryl7 perryl7 is offline
 

Member
  
Join Date: Dec 2005
Posts: 24
 

Default

Thanks balinor. I wrapped the add_to_cart.tpl with the suggested code where ever it appeared. I could not find the mini cart information that was mentioned though. Where could I find this? Thanks again.
__________________
perryl7 - X-Cart Gold 4.0.17
Reply With Quote
  #4  
Old 12-30-2005, 06:34 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

This line in home.tpl:

{ include file="customer/menu_cart.tpl" }
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 12-30-2005, 07:31 AM
 
perryl7 perryl7 is offline
 

Member
  
Join Date: Dec 2005
Posts: 24
 

Default

Thank you for the help. It works great now.
__________________
perryl7 - X-Cart Gold 4.0.17
Reply With Quote
  #6  
Old 01-04-2006, 06:22 PM
 
begeren begeren is offline
 

Member
  
Join Date: Dec 2005
Posts: 23
 

Default

I want to basically do the same thing, disable registration, but I also want to disable login. So I want all customers to bypass the whole register/login process and just checkout normally by entering their details each time they purchase. How do I do this?
__________________
X-Cart Gold
Version 4.0.17
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 04:59 PM.

   

 
X-Cart forums © 2001-2020