laurie_lewis Posted September 11, 2006 Posted September 11, 2006 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 Quote
Recommended Posts
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.