Magento 2 Experts — Hyvä Theme, Tailwind CSS & SEO from a Single Source ›

Magento 2 decimal places and price format, fully configurable

Magento 2 Extension Hyvä Ready Magento 2.4.x

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
Auf Lager
€79.00

Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.

No download, but personal setup

No download, but personal setup. This product is not a downloadable software package for self-installation. With your order, you commission Mironsoft to individually set up this module in your shop. We will get in touch with you within 2 business days — we'll sort out the details and payment together then.

This offer is aimed at business owners and companies running a Magento 2 shop.

Overview

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.

6 Features

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.

01Format per store view and currency

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
Stores › Configuration › Price Decimal Format
Store view German · EUR
2 places · comma · dot
Store view English · GBP
2 places · dot · comma
Store view Wholesale · EUR
3 places · hide zeros
Rules
Priority from top to bottom
Category Meter goods3 places
Attribute Brand = Premium0 places, no zeros
Everything elseStore view default
02Rules per product group

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
03Hyvä and structured data

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
Product page · Variant selection
Format: 3 places
Length 1 m$2.490
Length 5 m$11.950
Length 10 m$22.900
Use cases

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.

Comparison

Adjusting the price format: Magento default versus the extension

RequirementMagento defaultWith Price Decimal Format
Places per store viewNot possible, only global per currencyAdjustable from 0 to 4 per store view and currency
Own format for categoriesNot providedRule by category or attribute value
Zeros on whole amountsAlways visibleCan be hidden, optionally in listings only
Separators and symbolBound to the localeOverridable per store view
Dynamic Hyvä pricesCustom theme work neededAdopt the chosen format automatically
Process

Setting up Magento 2 decimal places in five steps

  1. 1

    Inventory

    We collect your store views, currencies and the product groups with special wishes.

  2. 2

    Installation

    Mironsoft installs the module and the connection to the Hyvä price function.

  3. 3

    Define formats

    Default format per store view and currency as well as rules for categories or attributes are created.

  4. 4

    Check price locations

    Listing, product page, variants, cart, checkout and emails are reviewed together.

  5. 5

    Handover

    You get a short walkthrough of how to adjust rules and use the preview.

Differentiation

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.

04How the purchase works

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.

Important to know

Your purchase does not include a download link. We will get in touch with you within 2 business days — we'll sort out the details and payment together then. This offer is aimed at business owners and companies running a Magento 2 shop.

FAQ

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?
No. It only changes the display. Tax and total calculation as well as amounts passed to payment providers remain unchanged.
Can I show 19 instead of 19.00?
Yes, zero hiding applies to whole amounts and can be limited to listings or the whole price display.
Are three or four Magento 2 decimal places allowed?
Yes, Magento 2 decimal places go up to four. For consumer prices you should check that the deviating display fits your price indication obligations.
Does it work with my Hyvä theme?
Yes, dynamic prices are output via the Hyvä price function with the same format.
What if no rule exists for a currency?
Then the Magento default format of that currency applies, so there are no empty or broken prices.
How can I change decimal places for prices in Magento 2?
By default only globally via the currency definition in code. With this module you set the number of places conveniently in the admin, per store view and currency.
How do I show 19 instead of 19.00 in Magento 2?
Enable zero hiding in the configuration. Optionally it only applies to product lists.
Do Magento 2 decimal places affect tax and payment?
No, the module only changes the display. Calculated amounts and payment hand-overs stay the same.
Does the format apply in checkout and emails too?
Yes, if you include these areas in the configuration. The application can be switched per area separately.
Can I download and install the module myself?
No. This is not a download product. After the purchase we install and configure the module for you personally in your shop.
Write Your Own Review
You're reviewing: Magento 2 decimal places – Mironsoft Price Decimal Format
loader
Loading...

You submitted your review for moderation.

This form is protected by reCAPTCHA - the Google Privacy Policy and Terms of Service apply.

Magento 2 decimal places – Mironsoft Price Decimal Format

Magento 2 decimal places – Mironsoft Price Decimal Format

€79.00