REPLACE:
CODE
if ($cart->count_contents() > 0) {
$info_box_contents[] = array('text' => tep_draw_separator());
$info_box_contents[] = array('align' => 'right',
'text' => $currencies->format($cart->show_total()));
}
$info_box_contents[] = array('text' => tep_draw_separator());
$info_box_contents[] = array('align' => 'right',
'text' => $currencies->format($cart->show_total()));
}
WITH:
CODE
if ($cart->count_contents() > 0) {
$info_box_contents[] = array('text' => tep_draw_separator());
$info_box_contents[] = array('align' => 'right',
'text' => $currencies->format($cart->show_total()));
if ($cart->show_total() < MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) {
$add_to_get_free_shipping = MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER - $cart->show_total();
$info_box_contents[] = array('align' => 'right',
'text' => sprintf(BOX_SHOPPING_CART_FREE_SHIPPING, $currencies->format($add_to_get_free_shipping)));
}
}
$info_box_contents[] = array('text' => tep_draw_separator());
$info_box_contents[] = array('align' => 'right',
'text' => $currencies->format($cart->show_total()));
if ($cart->show_total() < MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) {
$add_to_get_free_shipping = MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER - $cart->show_total();
$info_box_contents[] = array('align' => 'right',
'text' => sprintf(BOX_SHOPPING_CART_FREE_SHIPPING, $currencies->format($add_to_get_free_shipping)));
}
}
In includeslanguagesenglish.php
ADD:
CODE
define('BOX_SHOPPING_CART_FREE_SHIPPING', 'Add %s to your order and receive FREE shipping!');
This will stick a message into your shopping cart box telling the customer how much more they need to add to their cart to qualify for free shipping.
I haven't tested this on anything that didn't have the "buy over a certain amount, get free shipping" option on, so be sure to test this first with your version.
To see a working copy, go to my site and add something to your cart. I didn't really think this qualified as a contribution, so I stuck it in this forum. Hopefully this isn't something that someone has done a long time ago and I just missed
