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

move login/registration

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-12-2008, 02:27 PM
  swifty's Avatar 
swifty swifty is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 38
 

Default move login/registration

i would like to remove the authentication box from the home page, i only want links to the login/registration area from the home page.

can this be done fairly simplely, or do i have to buy a mod or somthing.

thanks
-swif
__________________
xCart 4.0.17
PHP 5.2.1
MySQL Server 4.0.26
MySQL Client 4.1.22
web Server:
Apache/1.3.37 (Unix) mod_psoft_traffic/0.1 Vortech_PHP/0.1.0-p0 FrontPage/5.0.2.2623 mod_ssl/2.8.28 OpenSSL/0.9.7e-p1
Reply With Quote
  #2  
Old 02-12-2008, 03:21 PM
 
balinor balinor is offline
 

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

Default Re: move login/registration

http://forum.x-cart.com/showthread.php?t=10141&highlight=my+account
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-13-2008, 08:00 AM
  swifty's Avatar 
swifty swifty is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 38
 

Default Re: move login/registration

not really a "simple" fix, but i think i can make it work.

thanks again.
-swif
__________________
xCart 4.0.17
PHP 5.2.1
MySQL Server 4.0.26
MySQL Client 4.1.22
web Server:
Apache/1.3.37 (Unix) mod_psoft_traffic/0.1 Vortech_PHP/0.1.0-p0 FrontPage/5.0.2.2623 mod_ssl/2.8.28 OpenSSL/0.9.7e-p1
Reply With Quote
  #4  
Old 02-13-2008, 08:16 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: move login/registration

Quote:
can this be done fairly simplely

You could SIMPLY comment out the auth.tpl include in home.tpl

file: /skin1/customer/home.tpl

FIND:
Code:
{if $login eq "" } {include file="auth.tpl" } {else} {include file="authbox.tpl" } {/if}

REPLACE WITH:
Code:
{if $login ne "" } {* {include file="auth.tpl" } {else} *} <br /> {include file="authbox.tpl" } {/if}

What this will do: UNTIL a user is logged in, there is nothing showing -- then once logged in, the authbox with the login info appears. Note the {if $login eq "" } was replaced with {if $login ne "" } -- so if there is no login, then there is nothing -- if login IS NOT EMPTY, then show the authbox.

YOU CAN THEN add links to login or registration as desired... this is how I have i set up. Works great for me. I DO NOT have any login box on my site... BUT I have an "rders history" link, which becomes: /error_message.php?need_login= and then the user can login and see their orders. This is one way to do this.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
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 06:23 AM.

   

 
X-Cart forums © 2001-2020