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

Need to display a message when someone buys multiple product

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

Senior Member
  
Join Date: Jan 2005
Posts: 193
 

Default Need to display a message when someone buys multiple product

Hello,

I'm hoping someone can help me with a bit of code.

I need to setup my store so that if someone has 2 or more items in their shopping cart when they checkout, they are shown a certain message on the screen where they view the contents of their shopping cart. If they have only one item they shouldn't see this message.

Anyone know how to do this?

Thanks,
Jennifer
__________________
Jennifer Kirkpatrick
X-Cart Pro Version 4.4.1
AND
X-Cart Gold Version 4.1.9
Reply With Quote
  #2  
Old 01-20-2005, 08:44 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

You could do such on the cart as long the $product array is available.

Code:
{if $products[1]} two or more items {elseif $products[0]}one item {/if}

Change smarty.php to use debug.tpl instead of debug_template.tpl and enable the debug console in the admin under general settings. You will see all available variables and arrays you can use.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
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 11:02 AM.

   

 
X-Cart forums © 2001-2020