Magento 2 base price: calculate the German Grundpreis automatically
SKU: BASEPRICE1
- Unit price calculated automatically from price, content amount and reference amount
- Unit conversion for kg, g, l, ml, m, m² and pieces
- Shown on listings, product page, cart and checkout
- Special prices and variants are reflected in the unit price
Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.
Magento 2 base price: implementing the obligation cleanly
Anyone selling goods by weight, volume, length or area to consumers in Germany must in many cases state the price per unit of measurement next to the total price, such as euros per kilogram or per liter. The indication is meant to make prices comparable. Magento 2 ships no function for this, many shops resort to free-text fields that have to be adjusted by hand with every price change and quickly become outdated. This page covers Magento 2 base price in detail.
The Base Price module calculates the Magento 2 base price automatically from selling price, content amount and reference amount. Per product you only maintain the package size, the module does the rest: units are converted, special prices are respected, the display appears in category list, product page, cart and checkout. In the Hyvä frontend the unit price updates live on variant selection, without an extra JavaScript library.
Magento 2 base price calculated correctly and visible where customers see the price
From product price and package size the price per reference amount is derived, consistent in every price display and without manual upkeep per price change.
Automatic calculation
From selling price, content amount and reference amount, no hand-maintained numbers.
Unit conversion
g to kg, ml to l, cm to m: you maintain the package size, the module converts.
Reference amount per product
1 kg, 100 g, 1 l, 100 ml or 1 m, whatever is usual for your range.
Shown everywhere
Category list, product page, cart and checkout show the same unit price.
Variants and tiers
In Hyvä the unit price updates on variant selection and tier prices.
Special prices
Promotional and catalog price rules feed into the unit price.
Calculate the Magento 2 base price: maintain package size, convert units
For the Magento 2 base price you store per product the content amount with unit (for example 250 g, 750 ml or 2.5 m) and the desired reference amount. The module converts to the reference amount and calculates the unit price from the currently valid price. When the price changes, the unit price follows without rework. For products whose sales quantity already equals the reference amount, the duplicate display is omitted.
- Units kg, g, l, ml, m, cm, m², pieces with conversion
- Reference amount presettable per product or category
- Rounding and format of the unit price configurable
Show price per kilogram: unit price in listings, cart and checkout
The Magento 2 base price appears in smaller type directly under the selling price on product lists, the product page and per line in cart and checkout. On variant products the unit price changes with the variant, with tier prices it follows the chosen tier. This runs with Alpine.js inside the Hyvä price box, without any extra external library.
- Listing, product page, cart and checkout switchable separately
- Variant selection and tier prices update the unit price live
- Label and separators per store view
PAngV base price indication: bulk maintenance and legal framework
For the Magento 2 base price, content amount, unit and reference amount are ordinary product attributes and can be maintained via import or mass action in the admin. The module helps you implement unit price indication but does not replace legal review: whether and in what form a unit price is required for your range, for example for prepackaged goods or loose goods and for exemptions, should be clarified with your legal counsel.
- Attributes maintainable via import and mass action
- Missing data is listed in an admin report
- Exceptions can be switched off per product
Which ranges need the Magento 2 base price
Wherever goods are sold in different package sizes.
Food, tea and spices
Ten varieties in 50, 100 and 250 grams: the price per kilogram makes offers directly comparable and follows promotional prices.
Cosmetics, drugstore and cleaning agents
Liquids in milliliters are converted to one liter or 100 milliliters, with a fitting reference amount per product group.
Hardware, textiles and meter goods
Cables, fabrics or flooring are shown per meter or square meter, even if you sell them in fixed rolls.
Unit price by free text or with the module for the Magento 2 base price
| Aspect | Without module (free text) | With Base Price |
|---|---|---|
| Calculation | By hand, again with every price change | Automatic from the current price |
| Units | Conversion in your head | g to kg, ml to l, cm to m automatically |
| Special prices | Often forgotten | Feed into the unit price |
| Variants and tiers | One text for all | Changes live with the chosen variant |
| Cart and checkout | Mostly missing | Visible per line item |
Setting up the Magento 2 base price in five steps
-
1
Review the range
We check with you which products and units are affected.
-
2
Installation
Mironsoft installs the module and creates attributes for content amount, unit and reference amount.
-
3
Take over data
Existing package sizes are mapped to the attributes via import.
-
4
Align the display
Position, font size and label in listing, product page, cart and checkout are adjusted.
-
5
Check
An admin report shows products with incomplete data before you go live.
Differentiation from related Mironsoft modules
Base Price delivers only the price per reference amount. Showing the lowest price of the last 30 days for discount promotions is handled by the Omnibus Price Tracker, how amounts are written is controlled by Price Decimal Format. All three modules complement each other and can be used together.
Legal mandatory texts such as imprint and withdrawal information are not part of the module. The module supports implementing the Magento 2 base price, the legal assessment stays with you and your legal counsel.
No download — personal setup instead
Base Price (Grundpreis) 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 attributes, units and reference amounts together with you and review the display at all price locations with you.
Frequently asked questions
Everything you need to know about how it works, setup and how the purchase works.
Do I have to re-enter the Magento 2 base price on every price change?
Are special prices taken into account?
What about configurable products?
Does the module replace legal review?
Can I hide the unit price for products without data?
How can I show the price per kilogram in Magento 2?
Where does the Magento 2 base price appear?
Can I use different reference amounts?
Does it work with Hyvä and configurable products?
Can I download and install the module myself?
Magento 2 base price – Mironsoft Base Price (Grundpreis)