Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

show difrent shipping module with diff. wight


Guest

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 3 weeks later...
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 :(

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