Title: Price Rounded Variable Products
Last modified: May 11, 2021

---

# Price Rounded Variable Products

 *  [shoptak](https://wordpress.org/support/users/shoptak/)
 * (@shoptak)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/price-rounded-variable-products/)
 * Hello Team,
 * Variable products price are rounded on Woocommerce while variations are using
   the correct price
 * I’m using L.L ( Lebanese Pound ) as a display currency worldwide ( Geolocation)
   based on USD with 2 decimal. Settings details: [https://ibb.co/X47kjLp](https://ibb.co/X47kjLp)
 * If **I disable Multi-Currency for WooCommerce plugin** and clear all transients
   under Woocommerce >> Status >> Tools >> WooCommerce transients and Expired transients…
   all the prices are correct but after re-activating the plugin the prices get 
   rounded again.
 * Product Example: [https://bit.ly/3tymKZK](https://bit.ly/3tymKZK)
    Wrong Price
   Screenshot: [https://ibb.co/DgHs9L2](https://ibb.co/DgHs9L2) Price before and
   after activating the plugin: [https://ibb.co/zhKhg51](https://ibb.co/zhKhg51)
 * Site URL: [https://baytplus.com](https://baytplus.com)
 * Please advise
 * Regards

Viewing 14 replies - 1 through 14 (of 14 total)

 *  [kimvt1991](https://wordpress.org/support/users/kimvt1991/)
 * (@kimvt1991)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/price-rounded-variable-products/#post-14432672)
 * Hi,
    I think there’s conflict with an other plugin on your site. Can you check
   if the issue occurs when only WooCommerce and our plugin are active? Best regards
 *  Thread Starter [shoptak](https://wordpress.org/support/users/shoptak/)
 * (@shoptak)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/price-rounded-variable-products/#post-14435224)
 * Hello [@kimvt1991](https://wordpress.org/support/users/kimvt1991/)
 * Thank you for your reply,.
    Ive followed the above steps but unfortunetaly it
   didnt work.
 * Prices are getting back to normal only by disabling multi-currency plugin and
   clear woocommerce cache under Woocommerce >> Status >> Tools >> WooCommerce transients
   and Expired transients
 * Ive found under woocommerce logs the below details. Can this be any root cause
   of the issue im facing ?
 *     ```
       2021-05-12T00:53:00+00:00 CRITICAL Uncaught Error: Call to a member function get_price_html() on bool in /home/baytplus/public_html/wp-content/plugins/woo-multi-currency/frontend/cache.php:44
       Stack trace:
       #0 /home/baytplus/public_html/wp-includes/class-wp-hook.php(292): WOOMULTI_CURRENCY_F_Frontend_Cache->get_products_price('')
       #1 /home/baytplus/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters('', Array)
       #2 /home/baytplus/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
       #3 /home/baytplus/public_html/wp-admin/admin-ajax.php(202): do_action('wp_ajax_nopriv_...')
       #4 {main}
         thrown in /home/baytplus/public_html/wp-content/plugins/woo-multi-currency/frontend/cache.php on line 44
   
       2021-05-12T01:19:28+00:00 CRITICAL Uncaught Error: Call to a member function get_price_html() on bool in /home/baytplus/public_html/wp-content/plugins/woo-multi-currency/frontend/cache.php:44
       Stack trace:
       #0 /home/baytplus/public_html/wp-includes/class-wp-hook.php(292): WOOMULTI_CURRENCY_F_Frontend_Cache->get_products_price('')
       #1 /home/baytplus/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters('', Array)
       #2 /home/baytplus/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
       #3 /home/baytplus/public_html/wp-admin/admin-ajax.php(202): do_action('wp_ajax_nopriv_...')
       #4 {main}
         thrown in /home/baytplus/public_html/wp-content/plugins/woo-multi-currency/frontend/cache.php on line 44
   
       2021-05-12T02:07:00+00:00 CRITICAL Uncaught Error: Call to a member function get_price_html() on bool in /home/baytplus/public_html/wp-content/plugins/woo-multi-currency/frontend/cache.php:44
       Stack trace:
       #0 /home/baytplus/public_html/wp-includes/class-wp-hook.php(292): WOOMULTI_CURRENCY_F_Frontend_Cache->get_products_price('')
       #1 /home/baytplus/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters('', Array)
       #2 /home/baytplus/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
       #3 /home/baytplus/public_html/wp-admin/admin-ajax.php(202): do_action('wp_ajax_nopriv_...')
       #4 {main}
         thrown in /home/baytplus/public_html/wp-content/plugins/woo-multi-currency/frontend/cache.php on line 44
       ```
   
 *  [kimvt1991](https://wordpress.org/support/users/kimvt1991/)
 * (@kimvt1991)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/price-rounded-variable-products/#post-14437248)
 * Did you try “clear woocommerce cache under Woocommerce >> Status >> Tools >> 
   WooCommerce transients and Expired transients” **after** deactivating all plugins
   but WC and ours?
 *  Thread Starter [shoptak](https://wordpress.org/support/users/shoptak/)
 * (@shoptak)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/price-rounded-variable-products/#post-14437575)
 * Hello Again [@kimvt1991](https://wordpress.org/support/users/kimvt1991/)
 * Thank you for your prompt reply.
 * Yes I did and my website is currently in the same situation for troubleshooting
   purposes all plugins are deactivated except WC and multi currency plugin but 
   same issue.
 * Please check the below:
 * Active Plugins: [https://ibb.co/JBrKy5m](https://ibb.co/JBrKy5m)
    Product page
   sample: [https://bit.ly/3oemn5D](https://bit.ly/3oemn5D)
 *  Thread Starter [shoptak](https://wordpress.org/support/users/shoptak/)
 * (@shoptak)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/price-rounded-variable-products/#post-14439964)
 * Please ignore the above Product page sample link and check the below one since
   I tried to delete this product and re-create it hoping it will fix my issue but
   unofrtunetalty it didnt
 * New Product page sample: [https://bit.ly/3foRCqK](https://bit.ly/3foRCqK)
    -  This reply was modified 5 years, 3 months ago by [shoptak](https://wordpress.org/support/users/shoptak/).
 *  Thread Starter [shoptak](https://wordpress.org/support/users/shoptak/)
 * (@shoptak)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/price-rounded-variable-products/#post-14442022)
 * Hello Again,
 * I’ve cleared woocommerce cache and kept only WC and multi-currency plugin active
   as mentioned above but unfortunately, it didn’t work.
 * Disabling Multi-currency plugin and keeping only WC active and clear WC cache
   all the prices are correct and working fine.
 * Please confirm if Multi-Currency is fully compatible with the latest version 
   of Woocommerce since I’ve noticed the same issue on another site that used to
   work fine.
 * Thank you
 *  [kimvt1991](https://wordpress.org/support/users/kimvt1991/)
 * (@kimvt1991)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/price-rounded-variable-products/#post-14450921)
 * Hi,
    Yes, I can confirm our plugin works properly with WC 5.3 but I just don’t
   know how to replicate the issue on my site. Please export the product with the
   issue and send me the csv file, I will import it to my site to see if the issue
   occurs. Best regards
 *  Thread Starter [shoptak](https://wordpress.org/support/users/shoptak/)
 * (@shoptak)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/price-rounded-variable-products/#post-14451121)
 * Hello [@kimvt1991](https://wordpress.org/support/users/kimvt1991/)
 * Thank you for your reply.
 * How would you like to send you the csv file? since I cant attach it here.
 * Regards,
 *  Thread Starter [shoptak](https://wordpress.org/support/users/shoptak/)
 * (@shoptak)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/price-rounded-variable-products/#post-14454435)
 * Hello again,
 * Please find the below details:
 * CSV File: [https://cutt.ly/nb1xcgP](https://cutt.ly/nb1xcgP)
    Demo Video: [https://cutt.ly/nb1x9V5](https://cutt.ly/nb1x9V5)
 * As you notice in the demo video at the beginning all the prices are already rounded
   up before cleaning WC transient and after cleaning WC transient the regular prices
   are back to normal ( Decimal Price ) after a while the prices get rounded up 
   again and this causing a mismatch between the variable product price and variations
 * Note that by turning off all the plugins and keeping only WC and Multi-Currency
   Plugin same behavior.
 * But if I keep only WC active this issue is gone and prices are always correct.
 * This is happening for variable products only.
 * Thank you
    -  This reply was modified 5 years, 2 months ago by [shoptak](https://wordpress.org/support/users/shoptak/).
 *  [kimvt1991](https://wordpress.org/support/users/kimvt1991/)
 * (@kimvt1991)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/price-rounded-variable-products/#post-14455916)
 * Hi,
    Thank you for your video and the file. I can see the rounded price once 
   after I import your products. But after clearing WooCommerce transient, I don’t
   see rounded price again. Do you have any clue about when the rounded price will
   show again after you clear transient?
 *  Thread Starter [shoptak](https://wordpress.org/support/users/shoptak/)
 * (@shoptak)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/price-rounded-variable-products/#post-14455948)
 * Hello,
 * Thank you for your prompt reply.
 * Prices get rounded by themselves after a while or sometimes if you made any kind
   of product update from another category or manually creating a new one.
 * Regards
 *  [kimvt1991](https://wordpress.org/support/users/kimvt1991/)
 * (@kimvt1991)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/price-rounded-variable-products/#post-14456693)
 * I try creating a new product but the issue does not come back [https://prnt.sc/133zwg6](https://prnt.sc/133zwg6)
   
   Now I have no idea how to continue debugging it. Does your site have server cache?
 *  Thread Starter [shoptak](https://wordpress.org/support/users/shoptak/)
 * (@shoptak)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/price-rounded-variable-products/#post-14456717)
 * No I dont have any kind of caching.
 * Note that I also did the above test on my localhost website ( offline Website)
   with only WC and Multi-currency activated same issue occured.
 * In addition, I did a test with another Multi Currency plugin and its working 
   fine but to be honest im used to your plugin since Im using it for many years
   now and I hope this can be fixed in the near future.
 * As for your screenshot, if you try to edit the price of the newely created product
   there’s also a chance for the prices to round up again.
    -  This reply was modified 5 years, 2 months ago by [shoptak](https://wordpress.org/support/users/shoptak/).
 *  [kimvt1991](https://wordpress.org/support/users/kimvt1991/)
 * (@kimvt1991)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/price-rounded-variable-products/#post-14469438)
 * In fact, I imported your csv file to a live site([https://kim.new2new.com/shop/](https://kim.new2new.com/shop/)).
   Since my last reply, the issue still does not come back [https://prnt.sc/138urlu](https://prnt.sc/138urlu)
   
   So if you’ll see the issue when you install our plugin on a live site, please
   let me know. You can also try creating a brand new WordPress site on your local
   server and install our plugin and WC to see if the issue still persists. Best
   regards

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Price Rounded Variable Products’ is closed to new replies.

 * ![](https://ps.w.org/woo-multi-currency/assets/icon-128x128.gif?rev=3089832)
 * [CURCY - Multi Currency for WooCommerce - Smoothly on WooCommerce 9.x](https://wordpress.org/plugins/woo-multi-currency/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-multi-currency/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-multi-currency/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-multi-currency/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-multi-currency/reviews/)

 * 14 replies
 * 2 participants
 * Last reply from: [kimvt1991](https://wordpress.org/support/users/kimvt1991/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/price-rounded-variable-products/#post-14469438)
 * Status: not resolved