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
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
Wrong Price Screenshot: https://ibb.co/DgHs9L2
Price before and after activating the plugin: https://ibb.co/zhKhg51Site URL: https://baytplus.com
Please advise
Regards
-
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 regardsHello @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 44Did you try “clear woocommerce cache under Woocommerce >> Status >> Tools >> WooCommerce transients and Expired transients” after deactivating all plugins but WC and ours?
Hello Again @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
Product page sample: https://bit.ly/3oemn5DPlease 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
-
This reply was modified 5 years, 3 months ago by
shoptak.
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
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 regardsHello @kimvt1991
Thank you for your reply.
How would you like to send you the csv file? since I cant attach it here.
Regards,
Hello again,
Please find the below details:
CSV File: https://cutt.ly/nb1xcgP
Demo Video: https://cutt.ly/nb1x9V5As 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.
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?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
I try creating a new product but the issue does not come back https://prnt.sc/133zwg6
Now I have no idea how to continue debugging it.
Does your site have server cache?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.
In fact, I imported your csv file to a live site(https://kim.new2new.com/shop/). Since my last reply, the issue still does not come back 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 -
This reply was modified 5 years, 3 months ago by
The topic ‘Price Rounded Variable Products’ is closed to new replies.