Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi,

 

I am trying to do a variation on the Australia Post Shipping contribution so that it is not displayed when it exceeds their maximum weight (20KGs) as I can not split into various sized packages.

 

I am doing this with a simple if statement:-

// ONLY SHOWN IF LESS OR EQUAL TO MAX WEIGHT

if ($total_weight <= MODULE_SHIPPING_AUSPOST_MAX_WEIGHT) {

 

The variable for the maximum weight is in the configuration section of the module.

 

My confusion :-" is about two variables that could be used $total_weight or $shipping_weight.

 

$total_weight - appears to simply a sum of the weights of the goods ordered (2 X 10 = 20).

 

$shipping_weight it shows that ( 2 X 10 = 23 or 3 X 10 = 33) - It is adding 3 KGs each time. I can not find where the variable $shipping weight is defined to understand why it is doing this.

 

Can anyone point me in the correct direction or give some experienced advice in this area please.

 

Laurie

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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