My store is currently offering a free item when the order sub total is over $99, so I'm trying to add a message that pops up on the shopping cart page, just above the cart table when the order reaches $99.
The page I'm editing is the tpl_shopping_cart_default.php page.
I figured I could just take the sub-total variable $cartShowTotal and use this bit of code to show a custom message when the cart is greater than or equal to $99
I have FREE_ITEM defined and I have tested it and the $cartShowTotal using simple echo commands on the page, they show the proper values and text. But my "if" statement is not working, maybe a problem with my code? Any ideas??Code:<div class="freeitem"> <?php if ($cartShowTotal >= 99) { echo FREE_ITEM; } ?> </div>






Bookmarks