Rounding values
-
Hi,
MSRP doesn t consider the decimals of the price. For example, if I set the MSRP as 10,80 , it saves it as 10,00.
How can I disable this and make it save the prices as they are?
Many thanks
-
Hi,
I’ve just re-checked on my test server, but unfortunately could’t reproduce the issue – decimal part is not removed here. Do you mean it’s removed on frontend only or in backend also? If it’s only on frontend – please check that “Number of decimals” option in “WooCommerce > Settings > General” is not set to zero – MSRP is displayed similarly to standard price, so “Number of decimals” option is also considered when displaying MSRP (that I could fix in next plugin version, but for a start I would need to know that this is the actual problem). Also – please try switching between comma and dot symbols when entering MSRP (however WooCommerce should handle this automatically and it should display a message when you are putting wrong symbol before the decimal part).
Hope that helps – please let me know if it doesn’t.
In backend remains as it is set (for ex: 11,70 $ ). It’s the frontend where it displays ” ,00 “, irrespective of the decimals (in my ex, it would display 11,00 $).
The settings in Woocommerce are set for 2 decimals, separated by a comma, so no issue here.
@mikeyhash – is this the main MSRP price or is it “savings amount” value? If it’s savings amount – there are “Savings amount in percent – rounding precision” options in plugin settings (in “WooCommerce > Settings > MSRP”) (one for single product page and another for archives) – please check if those are not set to zero?
It’s the %msrp% (main MSRP).
The savings amount is set to 0, indeed. Should I set it in another way?
-
This reply was modified 6 years, 6 months ago by
Mikey.
You can try setting it to 2 for example, however this affects
%you_save_percent%
and not%msrp%
, so looks like this won’t help… Maybe you could contact me through our website for further support?Thank you for your responses and endeavor to help.
Well, there’s nothing else to mention other than just this clear issue:
%msrp% displays ” ,00 ” on frontend and also in admin product list, irrespective of the value of the decimals that are inserted in admin edit product page (i.e. Product data -> General tab).
Ex: 18,99 saved in admin edit product page is displayed as 18,00 in frontend and in admin product list.
So you say that it works well in your testings and it is just me having this issue?
Hi again, @mikeyhash,
If there would be a possibility to create some test server, where that issue would be reproduced, that would be perfect. It looks like this should be very easy to fix. If creating a staging/test site is not an option – first thing I would try is to temporary disable all other plugins except WooCommerce and MSRP plugin to see if issue disappears. Also temporary switching to another theme (e.g. Storefront) may clear things up.
By the way – are original/standard product prices displaying with decimal part?
Hi,
Yes, the original product price works fine, it is displayed with the decimal part as I set it (for ex, 8,99 $).
I will also try to disable all other plugins.
@mikeyhash – please let me know if disabling plugins solves it. And if it does – which plugin.
@algoritmika, sorry for the late response. I have deactivated all plugins and left only WooCommerce, MSRP and Storefront Theme.
The issue persists. Ex: 18,99 saved in admin edit product page is displayed as 18,00 both in frontend and in admin product list.
I really need the exact MSRP price that I set for my products. Any ideas?
Hi @mikeyhash,
Sorry for the late reply. Unfortunately I can’t understand why this is happening. I’m also testing on Storefront theme, so our environments are identical, but decimal part is fine here. As mentioned – if there would be a possibility to create some (test) server, where that issue would be reproduced, that would be perfect, almost sure I could figure out what’s happening in a couple of minutes then…
If anyone else has similar issues – this is solved in plugin v1.3.2 (https://wordpress.org/support/topic/php-notice-in-debug-log-mode/).
-
This reply was modified 6 years, 6 months ago by
- The topic ‘Rounding values’ is closed to new replies.