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

menu_cart.tpl customization

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-22-2006, 12:07 PM
 
yaunus yaunus is offline
 

Newbie
  
Join Date: Feb 2006
Posts: 4
 

Default menu_cart.tpl customization

I would like to customize the menu_cart.tpl template to not display the CHECKOUT button if the user is currently checking out, so as not to confuse the user.

Here is the code I tried, but didn't work:

{if $mode ne "checkout"}
** the code to display the button **
{/if}


I'm trying to use the the get variable 'mode', but it doesn't seem to be reading it. Is there another way I should be doing this?
__________________
----
Ian
Reply With Quote
  #2  
Old 02-22-2006, 12:46 PM
 
balinor balinor is offline
 

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

Default

{if $smarty.get.mode ne "checkout"}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-22-2006, 02:06 PM
 
yaunus yaunus is offline
 

Newbie
  
Join Date: Feb 2006
Posts: 4
 

Default

Thank you! Worked perfectly!
__________________
----
Ian
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 01:15 PM.

   

 
X-Cart forums © 2001-2020