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)
-   -   Need to display a message when someone buys multiple product (https://forum.x-cart.com/showthread.php?t=11592)

jkirkpatrick 01-20-2005 05:43 AM

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

B00MER 01-20-2005 08:44 AM

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.


All times are GMT -8. The time now is 11:29 PM.

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