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

show in cart.php replace in cart.php?mode=checkout

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-05-2005, 05:43 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default show in cart.php replace in cart.php?mode=checkout

Hi,

Not sure on this one (now there is a surprise)

Can anyone tell me the smarty to do this.

I've got a bit of text set that shows in cart.php
but i want to show something different in it's place if customer is on cart.php?mode=checkout
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #2  
Old 09-05-2005, 07:41 AM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,531
 

Default

{if $smarty.get.mode eq "checkout" and $checkout_step ne $total_checkout_steps}
text here
{/if}

If you want to display at the last step then, it would be

{if $smarty.get.mode eq "checkout" and $checkout_step eq $total_checkout_steps}
text here
{/if}
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:03 PM.

   

 
X-Cart forums © 2001-2020