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

Magento 2 base price: calculate the German Grundpreis automatically

Magento 2 Extension Hyvä Ready Magento 2.4.x

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
Auf Lager
€149.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 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.

6 Features

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.

01Calculation and units

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
Edit product · Base price
Content amount
250 g
Reference amount
1 kg
Calculated unit price
4.98 per 1 kg at a selling price of 1.25
Category list
Spices and tea
Black pepper 50 g · 3.4969.80 / 1 kg
Green tea 250 g · 6.9027.60 / 1 kg
Olive oil 750 ml · 11.2515.00 / 1 l
02Display in the shop

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
03Upkeep and legal framework

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
Report · Products with incomplete base price data
Active products with reference amount but no content amount
SKU TEE-2041Content amount missing
SKU OIL-0117Unit missing
SKU SPC-0903Reference amount missing
Use cases

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.

Comparison

Unit price by free text or with the module for the Magento 2 base price

AspectWithout module (free text)With Base Price
CalculationBy hand, again with every price changeAutomatic from the current price
UnitsConversion in your headg to kg, ml to l, cm to m automatically
Special pricesOften forgottenFeed into the unit price
Variants and tiersOne text for allChanges live with the chosen variant
Cart and checkoutMostly missingVisible per line item
Process

Setting up the Magento 2 base price in five steps

  1. 1

    Review the range

    We check with you which products and units are affected.

  2. 2

    Installation

    Mironsoft installs the module and creates attributes for content amount, unit and reference amount.

  3. 3

    Take over data

    Existing package sizes are mapped to the attributes via import.

  4. 4

    Align the display

    Position, font size and label in listing, product page, cart and checkout are adjusted.

  5. 5

    Check

    An admin report shows products with incomplete data before you go live.

Differentiation

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.

04How the purchase works

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.

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.

Do I have to re-enter the Magento 2 base price on every price change?
No, the Magento 2 base price is recalculated from the current price whenever the price changes.
Are special prices taken into account?
Yes, special prices and catalog price rules flow in, the unit price always refers to the selling price currently displayed.
What about configurable products?
With the Magento 2 base price each variant can have its own content amount and unit. In Hyvä the unit price changes together with the variant selection.
Does the module replace legal review?
No. It implements the display, scope and exemptions of the unit price obligation for your range should be clarified with your legal counsel.
Can I hide the unit price for products without data?
Yes. Without a content amount, or with the exemption enabled, nothing is shown, and an admin report lists incomplete products.
How can I show the price per kilogram in Magento 2?
Store content amount and reference amount on the product. The module calculates the price per kilogram from them and shows it below the selling price.
Where does the Magento 2 base price appear?
Optionally in the category list, on the product page, in the cart and in the checkout. Each location can be switched separately.
Can I use different reference amounts?
Yes, per product or preset per category, for example 1 kg, 100 g, 1 l, 100 ml or 1 m.
Does it work with Hyvä and configurable products?
Yes. In the Hyvä frontend the unit price is updated via Alpine.js on variant selection and tier prices.
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 base price – Mironsoft Base Price (Grundpreis)
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 base price – Mironsoft Base Price (Grundpreis)

Magento 2 base price – Mironsoft Base Price (Grundpreis)

€149.00