Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

NEW! Zonesx shippi module - put items into many packages


macki

Recommended Posts

This module will put items into packages according to their weight and defined maximum weight.

With this module:

- you can define maximum shipping weight

- it won't allow to ship an item > maximum weight

- it divides items into packages, trying to fill them if it's possible. For example if you have maximum weight 10kg

and your client ordered 3 items each 4kg, he will get two packages: #1 8kg, and #2 4kg

- it allows you to define the number of zones through admin

 

The alogrithm used for dividing is a modified version of "giving a change" recurring algorithm with notes=weights and number of each note=quantity of weights.

 

Try it out! http://www.oscommerce.com/community/contributions,1490

 

Piotr Kamiński

[email protected]

 

ps.

If you like it, please donate: https://ssl.allpay.pl

customer id=1098

Link to comment
Share on other sites

  • 5 years later...
Two files were broken. Fixed version available.

 

Piotr Kamiński

 

 

Great update!

 

Just a little bug here:

 

Weight limit for this shipping method is: 30 kg(s)

Package 1 Postage to NL : 30 kg(s) €30,00EUR

Package 2 Postage to NL : 28 kg(s) €30,00EUR

Package 3 Postage to NL : 12 kg(s) €20,00EUR

Total Postage to NL : 38.5 kg(s) €80,00EUR

 

total is 38,5??? This should be 70 kg

 

 

besides this, there is this error:

 

Warning: uksort() [function.uksort]: Invalid comparison function in /home/bajafl01/domains/bajaflightcases.nl/public_html/catalog/includes/modules/shipping/zonesx.php on line 131:

 

131		  uksort($prods_to_pack, "$this->cmpWeights"); // sort array so heavier items are at the beginning
132		 $num_packages = 1;

 

another error found when you want select your shipping method:

 

Warning: uksort() [function.uksort]: Invalid comparison function in /home/bajafl01/domains/bajaflightcases.nl/public_html/catalog/includes/modules/shipping/zonesx.php on line 131

 

Warning: Cannot modify header information - headers already sent by (output started at /home/bajafl01/domains/bajaflightcases.nl/public_html/catalog/includes/modules/shipping/zonesx.php:131) in /home/bajafl01/domains/bajaflightcases.nl/public_html/catalog/includes/functions/general.php on line 33

Edited by J.S. Coolen
Link to comment
Share on other sites

I founded the first error:

 

131		  uksort($prods_to_pack, "$this->cmpWeights"); // sort array so heavier items are at the beginning
132		  $num_packages = 1;

 

 

New version

131		 uksort($prods_to_pack, array($this, "cmpWeights")); // sort array so heavier items are at the beginning
132		  $num_packages = 1;

 

But there is still an error with de calculation from the weight. Is there someone who can help me?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...