RE: Tell customer how much more to spend to get free shipping
delaen <[email protected]> 26 Aug 2003 10:38:03 -0000
| Newsgroups | gmane.comp.web.oscommerce.tips |
|---|---|
| Message-ID | <fd4d6368131510fe2b542ed3dac43973@osCommerce-Forums> |
This message was sent from: Tips and Tricks
http://forums.oscommerce.com/viewtopic.php?p=219838#219838
----------------------------------------------------------------
[quote="EnhanceYourVision.com"]Hey, this sounds like a great feature! But I don't have the Shopping Cart box in my store? so instead I would like to add this feature to my shopping cart PAGE under the total price? So before they checkout they get a notice saying, "Hey, spend another $20 and you get free shipping!"
Is this possible, and if so how?
Thank you![/quote]
Add the line to english.php and then wherever you want the line to display, add:
[quote]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();
echo '<p>' . sprintf(BOX_SHOPPING_CART_FREE_SHIPPING, $currencies->format($add_to_get_free_shipping));
}[/quote]
It worked for someone in product_info.php. I don't see why it wouldn't work on any other page as well. Let me know if it doesn't.