If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / help with new text tag on shopping cart page

help with new text tag on shopping cart page

Locked

Started by skylab001 on 30 Sep 2008, 7:23 AM · Views: 752

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
30 Sep 2008, 7:23 AM
#1
skylab001 avatar

skylab001

New Zenner

Join Date:
Jan 2008
Posts:
67
Plugin Contributions:
0

help with new text tag on shopping cart page

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

<div class="freeitem">
<?php if ($cartShowTotal >= 99) {

    echo FREE_ITEM;
}
?>
</div>

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??