Magento 2 decimal places and price format, fully configurable
SKU: PRICEDECIMAL1
- 0 to 4 decimal places per store view and currency
- Rules per category or attribute value, e.g. 3 places for bulk goods
- Hide zeros: 19 instead of 19.00 for whole amounts
- Dynamic Hyvä prices follow the same format automatically
Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.
Magento 2 decimal places: why price display is more than cosmetics
How a price looks affects trust and clarity. A building materials dealer needs three decimals for the per-meter price, a premium seller wants round amounts without .00, and a shop with several markets needs a different notation per language and currency. Magento 2, however, defines decimal places only globally via the currency and knows no differences per store view or product group. This page covers Magento 2 decimal places in detail.
The Price Decimal Format module changes that. You set Magento 2 decimal places in the admin, separated by store view, currency, category or attribute value. The change affects display only: price calculation, taxes and amounts passed to payment providers remain untouched. Dynamically calculated prices in Hyvä adopt the same format, no extra JavaScript package is needed.
Magento 2 decimal places: show prices the way your industry expects them
Magento 2 decimal places: fractions of a cent in wholesale, round amounts in a premium store: the format is set centrally and applied consistently.
0 to 4 decimal places
Adjustable per store view and currency, not only globally.
Rules per product group
Its own format for a category or an attribute value.
Hide zeros
Show whole amounts without trailing zeros, optionally only in listings.
Separators and symbol
Decimal and thousands separators and currency symbol position can be overridden.
Dynamic prices
Configurable products and tier prices in Hyvä use the same format.
Display only
Calculation, tax and payment amounts stay untouched.
Set Magento 2 decimal places per store view and currency
In the configuration you set per store view and currency how many Magento 2 decimal places are shown and which separators apply. A German store view shows 1.299,00 €, a British one 1,299.00 £. When no rule exists, the Magento default format applies.
- 0 to 4 decimal places per store view and currency combination
- Decimal and thousands separators can be overridden
- Fallback to the default format when no rule matches
Change the price format in Magento: rules per category and product group
Some ranges need different displays: prices per meter or kilogram with three decimals, premium items without ,00. Rules for Magento 2 decimal places apply per category or attribute value, the more specific rule wins. Zero hiding can be limited to listings so the product page keeps showing exact amounts.
- Rule by category or attribute with clear priority
- Zero hiding for listings, detail page or both
- Preview with a sample price right in the configuration
Price display in Hyvä: dynamic prices in the same format
In Hyvä prices are reformatted client-side on variant selection or tier prices. The module passes the chosen format to the Alpine.js price function, so there is no second rendering logic and no extra JavaScript bundle. Structured data and feeds keep the machine-readable format with a dot as decimal separator so search engines and price portals read nothing wrongly.
- Configurable products and tier prices in the same format as the listing
- JSON-LD and feeds stay machine-readable
- Cart, checkout and emails can optionally be included
When it pays to adjust Magento 2 decimal places
Typical situations in which the default format is not enough.
Meter goods, bulk goods and liquids
Prices per meter, kilogram or liter with three decimals make small differences between variants visible without changing the price in the catalog.
Premium shops with round amounts
Whole amounts without trailing zeros look calmer. Hiding can be limited to listings, the product page keeps showing the exact amount.
Several markets and currencies
Germany, Austria, Switzerland and Great Britain in one shop: each store view shows separators, symbol and number of places the way customers know them.
Adjusting the price format: Magento default versus the extension
| Requirement | Magento default | With Price Decimal Format |
|---|---|---|
| Places per store view | Not possible, only global per currency | Adjustable from 0 to 4 per store view and currency |
| Own format for categories | Not provided | Rule by category or attribute value |
| Zeros on whole amounts | Always visible | Can be hidden, optionally in listings only |
| Separators and symbol | Bound to the locale | Overridable per store view |
| Dynamic Hyvä prices | Custom theme work needed | Adopt the chosen format automatically |
Setting up Magento 2 decimal places in five steps
-
1
Inventory
We collect your store views, currencies and the product groups with special wishes.
-
2
Installation
Mironsoft installs the module and the connection to the Hyvä price function.
-
3
Define formats
Default format per store view and currency as well as rules for categories or attributes are created.
-
4
Check price locations
Listing, product page, variants, cart, checkout and emails are reviewed together.
-
5
Handover
You get a short walkthrough of how to adjust rules and use the preview.
Differentiation from related Mironsoft modules
Price Decimal Format controls only the look of prices. If you additionally have to state the price per kilogram or liter, you use the Base Price module for the unit price, the two modules complement each other without overlap. A price history or the lowest price of the last 30 days is the job of the Omnibus Price Tracker.
Price rules and discounts stay with Magento itself. Magento 2 decimal places changes nothing there, it merely formats the result.
No download — personal setup instead
Price Decimal Format is not listed here as a ready-made download file for self-installation. The purchase is a service commission: we get in touch with you after the purchase, install the module in your shop and define formats and product group rules together with you and check every price display in the storefront.
Frequently asked questions
Everything you need to know about how it works, setup and how the purchase works.
Does the module change rounding for Magento 2 decimal places?
Can I show 19 instead of 19.00?
Are three or four Magento 2 decimal places allowed?
Does it work with my Hyvä theme?
What if no rule exists for a currency?
How can I change decimal places for prices in Magento 2?
How do I show 19 instead of 19.00 in Magento 2?
Do Magento 2 decimal places affect tax and payment?
Does the format apply in checkout and emails too?
Can I download and install the module myself?
Magento 2 decimal places – Mironsoft Price Decimal Format