I’m using Woocommerce to build a custom theme for a webshop. The price formatting that i’m getting back now is: ‘150’ when the price is 150. This is what I want to achieve:

  • price = ‘150,00‘ when price is filled in as ‘150’
  • price = ‘150,50‘ when price is filled in as ‘150,50’
  • price = ‘150,55‘ when price is filled in as ‘150,55’

So I want to add the ‘,’ and two decimals in ‘sup’ tags. Seems pretty straightforward, but I can’t get it done. Anyway here who can help me?

Read more here: woocommerce - custom price formatting


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , ,

Wordpress related questions and answers: