I have written a module for Ubercart 2.x Drupal 6.x providing shipping cost calculation based on supplier, weight or order of the individual product. It is based on uc_tablequote. The supplier feature adds quite some complexity to it, so it is not just an extension of the previous mentioned module. Suppliers are defined as a taxonomy vocabulary and each product needs to specify a term. In "Home » Administer » Store administration » Configuration » Shipping quote settings" one is able to create a table consisting of (supplier, min weight/#order, max weight/#order, shipping rate)-records. Shipping cost is calculated individually per item in shopping cart and added up. Name of the module: uc_supplier_tablequote.
(Test-)Example of table created:
Supplier Minimum value Maximum value Shipping Rate
AngusRobertson 0 0.9 10
AngusRobertson 0.901 2 20
AngusRobertson 2.001 999999 50
Happy Books 0 1 15
Happy Books 1.001 2 30
Happy Books 2.001 999999 100
(Test-)Example of table created:
Supplier Minimum value Maximum value Shipping Rate
AngusRobertson 0 0.9 10
AngusRobertson 0.901 2 20
AngusRobertson 2.001 999999 50
Happy Books 0 1 15
Happy Books 1.001 2 30
Happy Books 2.001 999999 100
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | uc_supplier_tablequote.zip | 4.83 KB | mbohner |
| #1 | uc_supplier_tablequote.zip | 10.58 KB | mbohner |
Comments
Comment #1
mbohner commentedComment #2
avpadernoComment #3
avpadernoThe space between
if, and(is missing.The indentation should be increased of two characters every time.
The function doesn't respect the namespace of the module.
Comment #4
avpadernoThere have not been replies from the OP in the past 7 days. I am marking this report as .
Comment #5
mbohner commentedHi guys,
Have a look please. Thanks.
Cheers
Markus
Comment #6
avpaderno@mbohner: Your CVS application has been rejected on September; you need to re-apply, to get a CVS account.