• Resolved jandelay

    (@jandelay)


    Hello,

    i have a product with a very small price (0.023€).

    I have set the minimum quantity amount to 1000.

    The correct price when someone selects a quantity of 1000 should be:

    0.023€ * 1000 = 23€

    Instead, WooCommerce shows 20€. It is either calculating it wrong, or there is some setting that i need to change, in order to be able to work with float numbers?

    When i have a price of 0,044€ the price is 40€ instead of 44€

    So it somehow seems to round it up or down to the next tens place(10,20,30, etc.) But i dont want it to round at all. Where can i change that?

    I tried changing the “Number of decimals” setting to 3, instead of 2. In the WooCommerce settings option.
    But it doesnt not save my options. It automatically changes it back to 2.
    So i am not able to test that option.

    Thank you in advance

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Sandip Mondal – a11n

    (@sandipmondal)

    Hi @jandelay,

    I created a test product on my site with 0.023 as the price and set the minimum quantity to 1000 and it calculates the price correctly. (ie. it calculates 23 for 1000). Below are the details from my test.

    – Product: https://d.pr/i/5nT3p2
    – Screenshot of the total on the cart page: https://d.pr/i/8C7iUH
    – WooCommerce Currency Settings: https://d.pr/i/AhKSYm

    Can you please check the same again on your end?

    If that does not help, please share a copy of your site’s System Status Report with us. You’ll find it at the top of the page under WooCommerce > Status > Get system report > Copy for support (after you scroll down a bit). Paste the result here in your reply.

    Looking forward to your reply!

    Thread Starter jandelay

    (@jandelay)

    Thank you for the fast response.

    I forgot to mention, that the error only occurs with prices in Variable Products. If i use a “Simple Product” it works fine.

    Example: https://imgur.com/a/iwkc2B7

    I uploaded the System Status Report here:
    https://textdoc.co/WuvRkfZbi0IygUHJ

    Hello,

    Thanks for the info and for sending the system status report.

    Min Max Quantity & Step Control for WooCommerce (PRO): by CodeAstrology – 2.0.4

    Can you temporarily deactivate this plugin, then try again? Does it make a difference?

    If the issue is still present after that, you can perform a conflict test as explained in our documentation below:
    https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    Let us know if that worked for you.

    Thread Starter jandelay

    (@jandelay)

    Thank you very much.

    The Problem was actually another Plugin called “Aelia Currency Switcher”.

    Issue Resolved

    Thread Starter jandelay

    (@jandelay)

    Sorry, i still need a little bit of help to fix the issue.

    As you can see, i can “fix” the problem by have 3 decimal numbers set up in the currency switcher plugin:

    View post on imgur.com

    If i have 3 decimals, WooCommerce calculates it correctly.
    As shown here: https://imgur.com/a/9iZoAUq

    In other words, i need to have it set up to 3 decimals in the backend. But i want the customers to only see and pay the price with 2 decimals. Like: 23.00€

    Is there a way to preserve the prices with 3 decimals, while showing them with two? For example, setting the decimals to 3 in the settings, and then using a filter or something else to control the formatting (product price + checkout)?

    Thank you

    Hello,

    I understand what you are saying, please note that our support in this forum is related to WooCommerce core, in this case, my recommendation is to reach out to the Aelia Currency Switcher support.

    I hope this points you in the right direction. If you have any questions after that, feel free to let us know.

    Thread Starter jandelay

    (@jandelay)

    ok, will try. Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Problem calculating the price’ is closed to new replies.