• Resolved hsenar

    (@hsenar)


    Sorry – didn’t realize the other thread was already closed. I’ve opened a new thread and done a copy/paste of my post.

    I’ve made come progress.

    I uninstalled the plugin and deleted all plugin files and re-installed the plugin.

    Setup one rule at a time start with the first one :

    Upto 1kg : $5

    Weight : 0.001-1.0kg | Handling fee : $5

    The rule worked fine and showed the correct Shipping and handling for cart if weight was <1kg.

    I then added the 2nd rule :

    1kg and above:

    Weight : 1.001kg – infinity | Handling fee : $5 | Shipping Rate : $2 | Step: 0.5kg

    Tested and this works fine as well.

    But now my problem is that it shows both calculated values in the shipping dropdown and allows the shopper to select either one of the two shipping amounts calculated.

    How can I get it to show only the rate that is applicable?

    Thanks.

    https://www.ads-software.com/plugins/weight-based-shipping-for-woocommerce/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter hsenar

    (@hsenar)

    Good news. It seems to be working perfectly in Chrome. It always shows ONLY the correctly calculated cost and does not show the selection dropdown which allows the user to select which shipping rate they want to pay.

    Now I need to check why it’s not behaving the same way in Firefox.

    Are there any known issues related to FF?

    Thread Starter hsenar

    (@hsenar)

    ok.. works fine in FF as well now. That was weird.

    Setup free shipping for orders over $100 as well. So when free shipping is applicable it shows the drop down shipping selection with free selected by default. But still leaves the customer with the ability to choose the calculated shipping rate as well. Would be nice if it was possible to not give a choice. I understand it’s a woocommerce thing and not your plugin.

    Thanks for a great plugin.

    Plugin Author Dan

    (@dangoodman)

    Oh, ok. Glad it works for you now.

    I think it was a caching issue. Woocommerce caches cart calculation for some time. So you have to change something to get actual calculations, e.g. increase product quantity or add another product to the cart.

    Alfo

    (@alfonsberger)

    I have same/similar issue. Plugin in is working correctly, but on checkout there a different shipping options available (with the correct one already selected). How do I hide the other (more expensive) options that are not applicable for the order?

    Plugin Author Dan

    (@dangoodman)

    I think this is how Woocommerce supposed to work. For example if you have Free and Express shipping options user may want to choose Express shipping despite of its cost just to get their order more quickly.

    Anyway, there is a solution on the internet to disable other shipping options if free shipping is available – https://campbloomer.com/woocommerce-hide-shipping-options-free-shipping-available/.

    If you are only using shipping exposed by this plugin then you have another way to achieve this. Just make sure weight bands defined in WBS profiles do not intersect with each other.

    Alfo

    (@alfonsberger)

    Thanks dangoodman,

    I find it a bit odd that this is how woocommerce should work as I think our way of calculating the cost of shipping is not very uncommon. In our case it is not about free shipping or not, so the code doesn’t work.

    We only use WBS with the following settings:

    Country 1 up to 500g
    Country 1 500g to 1000g
    Country 1 1000g and more

    Europe up to 500g
    Europe 500g to 1000g
    Europe 1000g and more

    World up to 500g
    World 500g to 1000g
    World 1000g and more

    Not quite sure what you mean with bands should not intersect? Do you mean we need to set it from 0-499g and 500 to 1000g and 1001g…? Or do you mean there only can be one price for each weight range (which wouldn’t work in our case anyway)?

    Thanks for your help

    Plugin Author Dan

    (@dangoodman)

    In your case I think you want to define weight ranges like 0-499, 500-999, and so on to avoid appearing of two WBS shipping options (related to the same country set) to the user at the same time. That would be a case with the config you posted above if cart weight is exactly 500 or 1000 grams. Of course, just to be clear, this is not a plugin requirement. It will be working correctly with any weight ranges.

    But that does not solve the issue with multiple shipping options appearing if user is from Country1 or Europe. Wouldn’t it work for you if you define distinct country sets? I mean Europe except Country1 instead of all Europe countries and world except Europe countries instead of all world countries?

    Alfo

    (@alfonsberger)

    I actually created defined country sets. One for Country 1 and one for Europe. Country 1 is excluded from Europe. As for any other country outside of Europe, I charge a set price per item.

    An example: A customer is from Germany, he orders an item and on checkout two shipping options appear. The correct option (Germany 500g) is selected, but he also has the option to choose “World” as shipping rate. Why?

    As I said, the selected rate is correct, but I’m just not sure why a second or third random option appears, that does not even match the shipping address or the weight of the order.

    Alfo

    (@alfonsberger)

    This discussion got me thinking and thanks to dangoodman for the hint with the overlapping weight ranges. I fixed that now and it appears only two and not more options are still given for shipping. The correct one and “World”. Now I just need to exclude the European countries from international shipping and it should be all set.

    Plugin Author Dan

    (@dangoodman)

    Good!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Show only the single applicable shipping amount in the cart.’ is closed to new replies.