• Resolved df9517

    (@df9517)


    Love your plugin.

    After updating to recent woocommerce version 2.5.2 there is a problem.

    I use a flat rate charge 47.2 and after tax 25% is added this cost will be 59

    After the update the calculation is 47 x 1,25 = 58,75 (it ignores the .2)

    In woocommerce setting I use , as decimal, I did before and after the update.

    So something needs to be fixed in your plugin now for correct calculation of flat rate price. Thanks.

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

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

    (@df9517)

    I have a feeling that if I was allowed to input 47,2 instead of 47.2 in your plugin, it would work. I am not able to do that however.

    Plugin Author Dan

    (@dangoodman)

    Yes, it was allowed to input comma in some places and wasn’t allowed in others. Recently, it has been restricted to the decimal point only for all decimal and price inputs, for consistency.

    As of the rounding issue. I’m not able to reproduce the issue using WooComemrce 2.5.2, WBS 4.1.1 and WP 4.2.2. It shows me “wbs: $59,00 (incl. tax)” on checkout. Could you provide steps to reproduce?

    Thread Starter df9517

    (@df9517)

    I could reproduce it but not sure any longer it is something wrong in your plugin. I could be still however.

    If I use 2 decimals all are calculated correctly. However, I use 0 decimals becuase it looks more nice on product and category pages. This is probably what you tried.

    If I use 0 decimals it seems to round everything perfectly but the information sent to “payment module” as well as “invoice plugin” is without decimals for the freight and this could also be seen on the order summery. As far as I could tell, only freight cost from your plugin is affected.

    Thread Starter df9517

    (@df9517)

    Exact way how to easily reproduce:

    1) Place an order with settings on 0 decimals.

    2) Study order details: figures are rounded correctly to 0 digits (in reality freight cost is not correct)

    3) Change settings to 2 decimals

    4) Study the same order details: products are calculated correctly with exact tax but freight cost is wrong, missing the digits.

    (and this started after recent woocommerce update – it is very clear in my payment modules, customers paying 0,25 too little)

    Plugin Author Dan

    (@dangoodman)

    Yes, there is a note in the latest version changelog:
    Fix - When calculating shipping total, force rounding.

    However, you said this is only a case for WBS. Could you confirm that does not affect other shipping methods, e.g. built-in Flat Rate?

    Thread Starter df9517

    (@df9517)

    I didnt mean that it worked with other shipping plugins, what I meant was that the product costs are not rounded/calculated wrong.

    I only use your plugin, never tried any other.

    However, I tried with flat rate and the result was the same.

    I have to file this in woocommerce support then I guess. Thanks for your quick response.

    Thread Starter df9517

    (@df9517)

    I have asked this question in woocommerce. I will let you know if I get an answer:

    I want the charge for shipping to be 59 SEK and tax is 25%.
    Then I have to input 47,2 SEK
    The cost should then be 47,2 x 1,25 = 59 kr
    But after the last update, suddenly the calculation is 47 * 1,25 = 58,75
    Woocommerce neglects the last 0,2 of the shipping cost.
    I dont get it. If I want the charge to be 59 SEK, how to do?

    Thread Starter df9517

    (@df9517)

    Someone replied sending this link uncommented: https://github.com/woothemes/woocommerce/commit/64d4bb5172b9272bc384d48a0d298f92bc1a347c

    I guess that it means that its fixed in the next update.

    Plugin Author Dan

    (@dangoodman)

    Thanks for info. Looking forward for the next WooCommerce release.

    It’s possible to achieve exactly 59 shipping price including tax by providing 59 in the Base Cost field, and switching Taxable to None.

    Hej @df9517
    How did you solve this? I have the same issue…
    /Linda

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘"Price rounding" does not work’ is closed to new replies.