• Resolved turkigfx

    (@turkigfx)


    rounding the Total on the product page for an integer, for example 20.01 to 20.00 How is that possible?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Kyle M

    (@kylemcpheron)

    Hi turkigfx,

    There is a code snippet here you may find helpful:
    https://stackoverflow.com/questions/50241524/round-up-cart-total-woocommerce

    Please use this guide that shows how to correctly add custom code snippets to your WordPress site.

    Thread Starter turkigfx

    (@turkigfx)

    Hey, I’ve tried this before, it rounds the number in the basket, but I want to round the total on the product page.

    Kyle M

    (@kylemcpheron)

    Thank you for clarifying. That being said, if it is the “total” on the product page, I may need some additional clarification to understand what you are asking.

    The product page shows the price of an individual product, as seen here. Do you have a setup with multiple products on one page, and you want to round up all of the combined products to a whole integer?

    Would you be able to provide a screenshot of where you want to round the total, as that may help me further understand exactly what you are asking.

    Thread Starter turkigfx

    (@turkigfx)

    https://mzeeg.com/product/%d8%ad%d8%b3%d8%a8%d9%87-%d8%a7%d8%b3%d8%a7%d8%b3%d9%8a%d9%87/

    Please set the first and second options and set the quantity to 100

    The total will be 74.88. I want the sum to be rounded to an integer of 75

    Thank you

    Kyle M

    (@kylemcpheron)

    Thank you for confirming your intentions. The custom code you are looking for is not something that I am personally able to create for you.

    If you’re looking for custom code help, you might be able to find someone willing to volunteer their time and knowledge in the free PHP support forum at PHP Builder or within the Advanced WooCommerce group on Facebook.

    For assistance with customization or development with your site, we recommend reaching out to someone on our customizations page.

    Kyle M

    (@kylemcpheron)

    Hey there, since we haven’t heard back from you in awhile I’ll mark this thread as resolved now. If you have any further questions, I recommend creating a new thread.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘rounding the Total’ is closed to new replies.