
Diego Versiani(@diego-fluidweb-co)
3 Posts
Customers
Quote from Diego Versiani on December 1, 2021, 12:55
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
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

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on December 1, 2021, 13:17
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/
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/

Diego Versiani(@diego-fluidweb-co)
3 PostsTopic Author
Customers
Quote from Diego Versiani on December 4, 2021, 12:37
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
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

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on December 6, 2021, 12:17
Hello Diego
I will pass it to the developers, they will decide the appropriateness of this change.
Hello Diego
I will pass it to the developers, they will decide the appropriateness of this change.

Diego Versiani(@diego-fluidweb-co)
3 PostsTopic Author
Customers
Quote from Diego Versiani on December 10, 2021, 22:14
Hi Pablo,
Thank you so much for considering it :)
Best,
Diego
Hi Pablo,
Thank you so much for considering it :)
Best,
Diego

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on December 13, 2021, 11:15
Hello Diego
Welcome;)
Hello Diego
Welcome;)