RE: Tell customer how much more to spend to get free shipping
haborsale <[email protected]> 22 Jul 2003 17:25:05 -0000
| Newsgroups | gmane.comp.web.oscommerce.tips |
|---|---|
| Message-ID | <d9c5a09f53e45034d4d2a33238fd80bd@osCommerce-Forums> |
This message was sent from: Tips and Tricks
http://forums.oscommerce.com/viewtopic.php?p=200187#200187
----------------------------------------------------------------
I put the codes in the files that delaen stated in his post
This code in In \includes\boxes\shopping_cart.php
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)));
}
}
This code in In \includes\languages\english.php
define('BOX_SHOPPING_CART_FREE_SHIPPING', 'Add %s to your order and receive FREE shipping!');
If this is not correct can you point me in the right direction, I would really like to put this into our store.
Thanks