PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

[woocs_show_custom_price] Set precision to prices displayed

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi there,

We would like to display the converted prices using the shortcode [woocs_show_custom_price] with precision = zero (without cents) while keeping the currency settings with precision = 2.

This would allow us to add a banner to our website with a more marketable user-friendly price. Instead of displaying"AUD 118.47", we want to display"AUD 119".

I would like to ask you to add two new parameters to this shortcode"precision", and"round" which would accept values similar to what the PHP round function accepts.

Do you think it is feasible?

Best,
Diego

Hello Diego

All parameters are taken from the settings of this currency - https://c2n.me/4ebwCcY.png

If you want to hide the cents - https://c2n.me/4ebwIG1.png

To round  prices - https://currency-switcher.com/hook/woocs_raw_woocommerce_price/

Hi Pablo,

Thanks for sending the info.

Unfortunately, that does not solve the problem for us because we can only round the prices while displaying them on a banner.

Adding the parameter to the shortcode would be the ideal solution as it would add more flexibility and control.

Would you consider adding the parameters?

Best,
Diego

Hello Diego

I will pass it to the developers, they will decide the appropriateness of this change.

Hi Pablo,

Thank you so much for considering it :)

Best,
Diego

Hello Diego

Welcome;)