I'm implementing the "Quantity Discount" module into my cart from a user on this forum, however I can't seem to get it to display the discounts inside the shopping cart so I figured I could make a quick work around since I only have a few products and they're the same price.
When editing tpl_shopping_cart_default.php I decided to just create my own logical statements to display that they will be receiving the discount BEFORE checkout. However, anytime I throw in a new logic statement the cart doesn't display anything.
PHP Code:
<?php echo SUB_TITLE_SUB_TOTAL; ?><br>
<?php $cntContents = $_SESSION['cart']->count_contents(); ?>
Total Items: <?php echo $cntContents; ?>
<h2><?php echo $cartShowTotal; ?></h2><br />
Works fine.
PHP Code:
<?php echo SUB_TITLE_SUB_TOTAL; ?><br>
<?php $cntContents = $_SESSION['cart']->count_contents(); ?>
Total Items: <?php echo $cntContents; ?>
<?php
if($cntContents == 3) {
echo '<br>Discount One<br>';
}
?>
<h2><?php echo $cartShowTotal; ?></h2><br />
Makes the whole cart go blank, like an error occurred... Also how can I get RAW total data?
Bookmarks