I added this wonderful code that Glock started and Vaicekal improved but i'm having a hard time getting this to work. I installed it as it says and when the cart is empty, it will say what it should but as soon as someone adds something to the cart, this text goes away.
$free_ship_on = MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING;
if ($free_ship_on == 'false') {
$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);
$content .= '<span class="alert">' . 'Add '. $currencies->format($diff_to_free) .' to your order to qualify for Free Shipping!' . '</span>';
} else {
$content .= '<span class="alert">' . 'Your order qualifies for Free Shipping!' . '</span>';
}
} else {
$content .= '<span class="alert">' . 'Free Shipping for orders of ' . $currencies->format($free_limit) . ' or more.' . '</span>';
}
}
into the line 51 in the includes/templates/template_default/sideboxes/tpl_shopping_cart.php.
Use ($free_ship_on == 'false') on the 4th line of code above if you intend to use free shipping option. The($free_ship_on == 'true') - did not work for me. Maybe it will work with the freeshipper enabled.
Maybe someone knows what I've done wrong. I have the shipoptions mod installed with what i use for the free shipping threshold, should I also have the other shipping mod installed. Maybe I need to increase the size of the sidebox perhaps. Thank you for any help you can give.
Robert
Arcane Sanctuary



