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)
-   -   auth.tpl and menu_cart.tpl help? Smarty question. (https://forum.x-cart.com/showthread.php?t=22833)

taltos1 06-27-2006 12:55 PM

auth.tpl and menu_cart.tpl help? Smarty question.
 
Hello,
On my site I edited the mini-cart so that in the mini- cart view you can see that there is a

-Your account
-Register

section that seems to be working fine.

However, when you login to your account, right below those same links redndant links show up, so it looks like this:

- Your Account (I would like this to only show up if you are NOT logged in)
- Register (I would like this to only show up if you are NOT logged in)
- Your Wish List
- Your Account
- Orders history

Can anyone help me with this coding?

balinor 06-27-2006 01:00 PM

To only show something to non-logged in people, use this:

{if $login eq ""}

taltos1 06-27-2006 01:09 PM

Thank you, but can you give me an example of the whole code? Doesn't there need to be an
{if.....}
{then...}
{/if}

for example.
Thank you.

balinor 06-27-2006 01:20 PM

{if $login eq ""}

display this

{else}

display that

{/if}

Might want to have a look at this thread:

http://forum.x-cart.com/viewtopic.php?t=12234

taltos1 06-28-2006 02:25 PM

Exactly what I needed. Thank you so much.


All times are GMT -8. The time now is 03:02 AM.

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