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

auth.tpl and menu_cart.tpl help? Smarty question.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-27-2006, 12:55 PM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default 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?
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #2  
Old 06-27-2006, 01:00 PM
 
balinor balinor is offline
 

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

Default

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

{if $login eq ""}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 06-27-2006, 01:09 PM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default

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.
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #4  
Old 06-27-2006, 01:20 PM
 
balinor balinor is offline
 

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

Default

{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
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 06-28-2006, 02:25 PM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default

Exactly what I needed. Thank you so much.
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
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 03:41 AM.

   

 
X-Cart forums © 2001-2020