• Resolved Do Bi

    (@dobimarketing)


    Dear WooCommerce team,

    Is there any functions.php that can help me change the way prices are displayed? For millions, the price will be displayed as x million. For billions, the price will be displayed as x billion. Below 1 million, the price remains the same. For example:
    999 000 VND => No change
    231 000 000 VND => 231 million
    331 000 000 000 VND => 331 billion

    And remove the decimal by 0. For example: 2,00 million => 2 million

    Best Regarss,



Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there @dobimarketing ??

    From what I gather, you’d like prices in the Vietnamese ??ng to appear in a custom format, instead of the default numeric. Correct?

    Helping out with custom coding of this nature is outside the scope of support that our support staff can help out with here, although I would recommend the following:

    • Joining our WooCommerce Slack community (it does have a developer channel where you can ask coding questions): https://woo.com/community-slack/
    • Running the exact question you’re asking, along with the code provided, through an AI platform like ChatGPT for recommendations/changes to your code;

    I trust that points you in the right direction, but if you have more questions, let us know.

    We’re happy to help.

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Price’ is closed to new replies.