Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Marco Teodoro 72 posts 147 karma points c-trib
    Sep 21, 2016 @ 17:46
    Marco Teodoro
    0

    Merchello Shipping Provider Weight Ranges Calculations

    Hi,

    I've tried to use the default Merchello shipping provider to make the calculations based on weight. Can someone explain me how this works by default? don't know if i found a bug or incorrectly setup.

    We are using merchello 2.1.0 we can't upgrade now (SEO checker compatibility issues).

    we have 3 countries setup with different prices. So far so good. The problem is with range.

    I can't set decimal ranges? i want to set it like this :

    1) 0kg - 2kg 2.8€ 2) 2.1kg - 4kg 5€ 2) 4.1kg - 6kg 5.5€

    But after saving the values and reopening the dialog i've 1) 0kg - 2kg 2.8€ 2) 2kg - 4kg 5€ 2) 4kg - 6kg 5.5€

    this will cause one product with 2kg to have the shipping price of 5€, so the second option instead of the first one.

    Maybe i'm not setting this right. Can someone explain me how to configure this in the proper way?

    Cheers, Marco

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Sep 21, 2016 @ 18:27
    Rusty Swayne
    101

    Hi Marco

    I think if you put

    • 0kg - 2.1 kg 2.8
    • 2.1kg - 4.1 Kg 5
    • 4.1kg - 6kg 5.5

    You will get what your after.

    The underlying check is doing

     RateTable.Rows.FirstOrDefault(x => x.RangeLow <= totalWeight && totalWeight < x.RangeHigh);
    
  • Marco Teodoro 72 posts 147 karma points c-trib
    Sep 21, 2016 @ 20:11
    Marco Teodoro
    0

    Thanks Rusty, works now!

    I was thinking that the range was between but including the limits

    like <=2 && >=2.

    that's what happen when we make assumptions :D

    Thanks a lot for the answer and the Merchello product, i just love it.

    Cheers.

Please Sign in or register to post replies

Write your reply to:

Draft