| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
If statement checking for items in cart | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I would like to display a shipping message only after an item is added is the the cart; So the message will not appear is their are no items in the cart.
Does someone know the the IF statement that checks the cart to see if their are items in the cart?
__________________
x-cart 4.0.16v linux server |
|||||||
#2
|
|||||||||
|
|||||||||
![]() You can use:
Code:
|
|||||||||
#3
|
|||||||
|
|||||||
![]() Is there also a statement along the same lines to check for a particular item in the cart?
Dan
__________________
4.4.2 and 4.6.1 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() ^ No, I believe that would need to be done in the PHP code anywhere except cart.php
|
|||||||||
#5
|
|||||||
|
|||||||
![]() thanks
__________________
x-cart 4.0.16v linux server |
|||||||
#6
|
|||||||
|
|||||||
![]() Quote:
I looked all over for this recently and then ended up just coding it myself in products.tpl. Should be a similar process for any other page. For the curious: 4.1.3 products.php before Code:
add Code:
then in products.tpl Code:
hope that helps. |
|||||||
|
|||
X-Cart forums © 2001-2020
|