New Zenner
- Join Date:
- Jun 2006
- Location:
- Washington State
- Posts:
- 13
- Plugin Contributions:
- 0
$XX.XX remaining until free shipping
I have created my CSS style sheets and am now trying to understand how the sideboxes function. I think I have a slight grasp on the override options but am not sure what actual file(s) control the sidebox. I am trying to get the following code into a sidebox but am not sure how to get it to register in my admin console so I can turn it on. The code was poached from another forum and will tell the user how much remains for them to qualify for free shipping.
Can someone give me some guidance with this isssue?
<?php
$free_ship_on = MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING;
if ($free_ship_on == 'true') {
$free_limit = MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER;
if ($_SESSION['cart']->count_contents() > 0) {
$_SESSION['cart']->get_products();
$basket_total = $_SESSION['cart']->show_total();
if ($basket_total < $free_limit) {
$diff_to_free = ($free_limit - $basket_total);
echo 'Add '. $currencies->format($diff_to_free) .' to your order to qualify for Free Shipping!';
} else {
echo 'Your order qualifies for Free Shipping!';
}
} else {
echo 'Free Shipping for all orders of ' . $currencies->format($free_limit) . ' or more.';
}
}
?>