Contributions

Shipping Modules (Category Index)
Search: 

Additional Shipping Options for Table Module

Simple modification that demonstrates how you can add multiple shipping options (2-day, next day, etc.) to the table rate module.

This example adds 2-day shipping, but you could conceivably use the same method to add as many other options as you want.

Just replace your existing files (2) with the ones included in the archive. The included files are based on 2.2MS2.

Expand All / Collapse All

Bug Fix 9 Jan 2007



What's been changed from the previous distribution:

File Name: catalogincludesmodulesshippingtable.php

1. After line "function quote($method = '') {"
Change "global $order, $cart, $shipping_weight, $shipping_num_boxes;"
To "global $order, $cart,$shipping_num_boxes,$order_total;"

2. Change the if statement:
if (MODULE_SHIPPING_TABLE_MODE == 'price') {
$order_total = $cart->show_total();
} else {
$order_total = $shipping_weight;
}

to:

if (MODULE_SHIPPING_TABLE_MODE == 'Price') {
$order_total = $cart->show_total();
} else {
$order_total = $cart->show_weight();
}

Tested OK on
Apache/2.0.54 (Unix) PHP/4.4.2 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.3.2

More robust installation/uninstallation 13 Nov 2006
Another bugfix 3 Nov 2006
Fix for "always uses the first method" 3 Nov 2006
Bug fix 26 Oct 2006
Autodetect shipping methods and few enhancements 15 Oct 2006
Update/Bugfix John Joyce 5 Oct 2004
Required update/bugfix Justin Pinder 1 Sep 2003
Additional Shipping Options for Table Module Justin Pinder 11 Aug 2003

Note: Contributions are used at own risk.