cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove the decimal from the price in Magento 2

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

How to remove the decimal from the price in Magento 2

Hi everybody, I am Cuong, Welcome back to my Magento 2 tutorial video series.

Today, I am going to show everybody the best practice, How to remove the decimal from the price in Magento 2.

By default, Magento 2 is showing the price with 2 decimals on the storefront, this is good for some currencies such as USD, EUR. But it is not good for the currency such as VND (Vietnam Dong). When you work for a project, it is required to remove the decimal from the price, you don't know how to remove it, today, I show you the best codes to complete your task.

We have the scenario: We will provide a feature, that allows the administrator sets up showing the decimal with precision between 1 to 3 or remove the decimal from the price.

How to remove the decimal from the price.png

See the video about this lesson https://www.youtube.com/watch?v=dOTbccH69Rs&index=42&list=PL98CDCbI3TNvPczWSOnpaMoyxVISLVzYQ