Guest Posted December 21, 2006 Share Posted December 21, 2006 Hi Is it possible to setup different shipping modules compared to how much the packed wight is.. ex: if a packed wight is 50grams (0.050)kg, during checkout you will get (letter mail) and if wight is 2500grams (2.5)kg you will get (parcel delivery) and the letter mail will not show then. Is this possible by making som php code with (if) statements? Thanks Morten Quote Link to comment Share on other sites More sharing options...
Guest Posted December 22, 2006 Share Posted December 22, 2006 Hi Is it possible to setup different shipping modules compared to how much the packed wight is.. ex: if a packed wight is 50grams (0.050)kg, during checkout you will get (letter mail) and if wight is 2500grams (2.5)kg you will get (parcel delivery) and the letter mail will not show then. Is this possible by making som php code with (if) statements? Thanks Morten Can I use something like this: if (total_wegiht <2000 Any one?? Quote Link to comment Share on other sites More sharing options...
andytc Posted January 11, 2007 Share Posted January 11, 2007 Can I use something like this: if (total_wegiht <2000 Any one?? a royal mail module (4473 - UK_SHIPPING_METHODS v 1.2(2)) i found uses this - if ($total_weight > 1.5) { // If total ship weight is over 3.00Kg do not show this shipping method $this->enabled = false; // Anything over 3Kg its not economically wise to use this method } // To remove this 3.00Kg limit, simply delete these 3 lines. or this if ($total_weight < 1) { // If total ship weight is less than 3.00Kg do not show this shipping method $this->enabled = false; // Anything under 3Kg its not economically wise to use this method (Royal Mail recommended) } // To remove this 3.00Kg limit, simply delete these 3 lines I'd like to get that to function with other shipping modules , but i can't get it to work. it only works on the royal mail module itself , i have no clue how to adapt that code to use on other shipping modules :( Quote Link to comment Share on other sites More sharing options...
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.