Per-unit reference price display — legally compliant with German PAngV and EU Price Indication Directive. Shows price per kg, litre, metre on all surfaces.
composer require magendoo/module-base-price
Base price appears on product detail pages, category listings, search results, and shopping cart. Customers see the per-unit price everywhere they see a product price.
Ships with kilogram, gram, litre, millilitre, metre, centimetre, square metre, piece, and pair. Add custom units via admin or API for industry-specific needs.
Meets German PAngV (Preisangabenverordnung) and EU Directive 98/6/EC requirements. Correct reference quantity formatting ensures your store passes legal review.
Customize the base price display format with placeholders for price, unit, and reference quantity. Match your store's design without touching template files.
Full CRUD for units, per-product base price management, and a calculator endpoint that computes the reference price from product price, amount, and unit.
Set product amount, unit, and reference quantity per product. Override the calculated base price with a manual value when needed for promotional pricing.
composer require magendoo/module-base-price
bin/magento module:enable Magendoo_BasePrice
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush
({price} / {reference_quantity} {unit}))| Method | Endpoint | Description |
|---|---|---|
| GET | /V1/baseprice/units | List all base price units |
| POST | /V1/baseprice/units | Create a new unit |
| GET | /V1/baseprice/units/:id | Get unit by ID |
| PUT | /V1/baseprice/units/:id | Update a unit |
| DELETE | /V1/baseprice/units/:id | Delete a unit |
| GET | /V1/baseprice/products/:sku | Get base price data for a product |
| PUT | /V1/baseprice/products/:sku | Set base price data for a product |
| DELETE | /V1/baseprice/products/:sku | Remove base price from a product |
| POST | /V1/baseprice/calculator | Calculate reference price from price, amount, and unit |
| Section | Config Path | Description | Default |
|---|---|---|---|
| General | baseprice/general/enabled | Enable/disable the module | Yes |
| General | baseprice/general/template | Display format template | ({price} / {reference_quantity} {unit}) |
| General | baseprice/general/css_class | CSS class for the base price wrapper | base-price |
| Product Page | baseprice/product/enabled | Show base price on product detail page | Yes |
| Product Page | baseprice/product/position | Position relative to main price | After price |
| Category / Search | baseprice/listing/enabled | Show base price in category and search listings | Yes |
| Category / Search | baseprice/listing/position | Position in listing price block | After price |
| Cart | baseprice/cart/enabled | Show base price in shopping cart | Yes |
| Cart | baseprice/cart/show_in_minicart | Show base price in mini cart | No |
Every module is built for production, but every store is different. If you need integration, customization, or enterprise support — let's talk.
Get in Touch GitHub