X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   move login/registration (https://forum.x-cart.com/showthread.php?t=37530)

swifty 02-12-2008 02:27 PM

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

balinor 02-12-2008 03:21 PM

Re: move login/registration
 
http://forum.x-cart.com/showthread.php?t=10141&highlight=my+account

swifty 02-13-2008 08:00 AM

Re: move login/registration
 
not really a "simple" fix, but i think i can make it work.

thanks again.
-swif

carpeperdiem 02-13-2008 08:16 AM

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 ":orders 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.


All times are GMT -8. The time now is 06:07 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.