Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

MultiGeoZone Shipping - Disable method over certain weight?


strobotron

Recommended Posts

Can a method be disabled for packages over a certain weight?

 

example, we have 2 shipping methods:

 

-Normal Post for smaller items that fit thru a mailslot

-Parcel Post for larger items

 

Once the weight is over say 250grams I want the Normal Post method to disappear all together, leaving only the option for Parcel Post

 

... saw something similar for another contribution that went something like this:

// class methods

function quote($method = '') {

global $order, $cart, $shipping_weight, $shipping_num_boxes;

if($shipping_weight > 250)

{

$this->enabled = false;

return;

}

 

but don't know how to apply this to MultiGeoZone Shipping

 

Any ideas?

 

Thank you!

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