Community Add-Ons

Maintainers: Jordi
Add file to this package
Top » Order Total Modules

Free shipping before tax
for osCommerce Online Merchant v2.2

1. Find in catalog/checkout_shipping.php around line 86

$free_shipping = false;
if ( ($pass == true) && ($order->info['total'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
$free_shipping = true;

and change to this:

$free_shipping = false;
if ( ($pass == true) && ($order->info['subtotal'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
$free_shipping = true;

2. Find in catalog/includes/modules/order_total/ot_shipping.php around line 41

if ( ($pass == true) && ( ($order->info['total'] - $order->info['shipping_cost']) >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {

and change to this:

if ( ($pass == true) && ( ($order->info['subtotal'] - $order->info['shipping_cost']) >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {

3. And finally if you want, find in catalog/includes/languages/english/modules/order_total/ot_shipping.php
at line 17

define('FREE_SHIPPING_DESCRIPTION', 'Free shipping for orders over %s');

and change to this:

define('FREE_SHIPPING_DESCRIPTION', 'Free shipping for orders over %s exc.VAT');

All credits goes to coolcl ...

Regards from spain!

Legend:  Download   Report
Expand All / Collapse All
Free shipping before tax Jordi 16 Mar 2007  

1. Find in catalog/checkout_shipping.php around line 86

$free_shipping = false;
if ( ($pass == true) && ($order->info['total'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
$free_shipping = true;

and change to this:

$free_shipping = false;
if ( ($pass == true) && ($order->info['subtotal'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
$free_shipping = true;

2. Find in catalog/includes/modules/order_total/ot_shipping.php around line 41

if ( ($pass == true) && ( ($order->info['total'] - $order->info['shipping_cost']) >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {

and change to this:

if ( ($pass == true) && ( ($order->info['subtotal'] - $order->info['shipping_cost']) >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {

3. And finally if you want, find in catalog/includes/languages/english/modules/order_total/ot_shipping.php
at line 17

define('FREE_SHIPPING_DESCRIPTION', 'Free shipping for orders over %s');

and change to this:

define('FREE_SHIPPING_DESCRIPTION', 'Free shipping for orders over %s exc.VAT');

All credits goes to coolcl ...

Regards from spain!