Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Shipping/Packaging - Trying to understand


Recommended Posts

I am trying to understand the logic behind two entries under Configuration - Shipping/Packaging. In the module /includes/classes/shipping.php I find the following;


if (SHIPPING_BOX_WEIGHT >= $shipping_weight*SHIPPING_BOX_PADDING/100) {

$shipping_weight = $shipping_weight+SHIPPING_BOX_WEIGHT;

} else {

$shipping_weight = $shipping_weight + ($shipping_weight*SHIPPING_BOX_PADDING/100);



I have the tare weight set to 2 and the Larger Package % to increase set at 80. If I have an order for an 8 lb item then the flow would go like this:


if 2 >= 8 * .80

$shipping_weight = 8 + 2


$shipping_weight = 8 + 6.4


This gives me an answer of 14.4 lbs in my example. Is there any logic to this? It escapes 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.

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...