Developer forum

Forum » Ecommerce - Standard features » Remove shipping method if product is over weight limit

Remove shipping method if product is over weight limit

Martin Ottesen
Martin Ottesen
Reply

Hi DW,

I'm trying to limit a shipping method so that it cannot be chosen if a product is over a certain weight limit. 

How would I go about this?

Specifically, I'm trying to make it impossible for the customer to choose a parcel box, if they choose a large product.
The only rules I feel that I can setup is to increase the price of the shipping method as the weight goes up, i don't know how to go about removing the shipping method if a certain product has been chosen based on the weight.

These are my current rules, which only increase the price as the weight goes up, but I can't seem to find any setting that would remove it.


 

So I guess what I want is to be able to add to my rule that applies for products above 5kg, that the shipping method is removed or made inactive, is that possible?

Kind Regards
Martin


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Martin

Yeah, you cannot without a bit of modification.

You could set it up so that at above a specific weight, the fee would be 10.000 and then in the template remove shipping methods that are over i.e. 1.000

 
Martin Ottesen
Martin Ottesen
Reply

Hi Nicolai,

Thanks for the quick reply, we will probably try to do that.

But maybe something that would be great for any future iterations of the shipping rules :) 

Thanks!

 

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

When using custom code, you could use a subscriber (BeforeShippingCalculation) as discussed here: https://doc.dynamicweb.com/forum/ecommerce-standard-features/ecommerce-standard-features/differentiate-shipping-options-based-on-products

Imar

 

 

You must be logged in to post in the forum