Developer forum

Forum » Ecommerce - Standard features » Shipping matrix behaviour seems off

Shipping matrix behaviour seems off

Frederik Rossen
Frederik Rossen
Reply

I have the following rules applied to my shipping provider: 

And if I were to select "Either weight or volume must apply", I would assume that a weight of 10kg would have trigger my 0-35kg rule and apply a 120 fee. But it doesn't apply any fee at all.

If I instead select "Both weight and volume must apply" with a weight of 10kg, it will trigger my 0-35kg rule and apply a 120 fee.

 

So it seems like the "OR" logic doesn't work correctly, otherwise I must be missing something. This is on DW 9.12.1


Replies

 
Nicolai Pedersen
Reply

If you set either weight, volume or order total to 0 when using the "both weight and volumne must apply" that specific criteria is seen as inactive. So when you have a rule where all of them are 0 and using or, the calculation will fall back to default fee of the shipping method.

If you change i.e. weight to 0.01, the fee will get applied.

The reason for that is when you use an 'or' is that if 0 was not ignored, it would fail the check and no fees would apply... If that makes sense.

The feature was originally made for situations where you have something like this:

  • 0-10 kg, fee = 10
  • 10-20 kg, fee = 20
  • But if volume > 10 (a big package for instance), fee = 30

So kind of something that overrules (or the opposite)

BR Nicolai

 
Nicolai Pedersen
Reply

Hi Again.

Change the minimum weight to 0.01 and it will work. We just discussed if this works as it should, but we need some deeper dives to make that decission and figure out if it works like this for a reason or it is an issue we need to address.

BR Nicolai

 

You must be logged in to post in the forum