• Resolved billspaced

    (@billspaced)


    I have products with dynamic pricing. For 1000 cards, my unit price is $.095, or $95 for a 1000 cards. However, woocommerce seems to be rounding up the unit price to $.10 before it multiplies by the number of units (1000), giving the subtotal as $100.

    Rounding should occur AFTER the multiplication.

    The page I need help with: [log in to see the link]

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

    (@billspaced)

    I have screenshots but I don’t know how to upload them (is it even possible)?

    Hi @billspaced,

    Your solution has 2 steps:
    1. Set Decimal value from WooCommerce > Settings > General > Number of decimals. After navigating to this, set the value to 3.

    2. Navigate to WooCommerce > Status > Tools and click on Clear Transients.

    Hope that works.

    Thank you

    Plugin Support abwaita a11n

    (@abwaita)

    Hello @billspaced,

    * For sharing screenshots here, you can use https://snipboard.io – please follow the instructions on the page, then paste the image URL in this chat.

    That said, I checked the product page that you shared and on my side, the price was shown as $1.19.


    Link to image: https://snipboard.io/bcDaQY.jpg

    However, when I tried adding to cart 1000 cards, the price was discounted down to $0.10.


    Link to image: https://snipboard.io/xAS7bT.jpg

    Thus, it does not seem to be a rounding error, but rather a tool that you’re using to discount prices down to $0.10. I recommend that you do a full conflict test to see if you can find out the tool causing this issue.
    Here’s the conflict test guide – https://docs.woocommerce.com/document/how-to-test-for-conflicts/.

    Let us know how it goes.
    Thanks.

    • This reply was modified 3 years, 2 months ago by abwaita a11n. Reason: *added clarifications
    Thread Starter billspaced

    (@billspaced)

    so in the individual product page, the price (dynamic pricing) is set to $.095 for 1000 to 1500 cards for the small size (2.5×3.5) – https://snipboard.io/QGck6o.jpg

    Thread Starter billspaced

    (@billspaced)

    @zworthkey12vaibhav, when I do that, it confuses people when they see their total in the cart at, for example, $95.000. Is there a way to limit the digits on the checkout/cart page while still doing what you suggested?

    Mirko P.

    (@rainfallnixfig)

    Hey @billspaced,

    Thanks for getting back.

    In the screenshot you shared I can see a Dynamic Pricing option that is not part of the WooCommerce core plugin. This extra function was added by another plugin or via custom code.

    As suggested by @abwaita, kindly reach out to the tool or plugin authors for assistance. If you don’t know what tool added that particular option you can perform a conflict test disabling all other plugins except WooCommerce. Reactivate your other plugins one by one, testing after each, until you find the one adding that functionality.

    Thanks.

    Thread Starter billspaced

    (@billspaced)

    Okay, that makes sense. Does the core WooCommerce plugin have similar functionality? (different unit price depending on quantity – e.g., 16 units at $1 and 1000 units at $0.50?)

    Thread Starter billspaced

    (@billspaced)

    So it’s an official WooCommerce extension – Dynamic Pricing (https://woocommerce.com/products/dynamic-pricing/?quid=0741978975b91a7ba63976eb3bb13950)

    I disabled that plugin and the discount on 1000 units ceased to work. I re-enabled it and the discount came back with, of course, the rounding error.

    Hi @billspaced

    I disabled that plugin and the discount on 1000 units ceased to work. I re-enabled it and the discount came back with, of course, the rounding error.

    Thank you for clarifying. Since this issue is directly related to the premium extension, please contact us at?WooCommerce.com > My Account > Support. You may need to create an account before you can access that page. Also, include a link to this forum thread, so that we can keep track of what’s already been done.

    Hi @billspaced

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. If you have other questions, please feel free to open a new topic.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Rounding errors’ is closed to new replies.