Loading...
Skip navigation
Black Week: 25% off all TYPO3 extensions from November 23 to 30 – services and SaaS offers are excluded.
Please note that this documentation is for the most recent version of this extension. It may not be relevant for older versions. Related documentation can be found in the documentation directory of the extension.

Base prices

Base prices show the unit price per a defined reference quantity (e.g. per 1 kg, per 1 l, per 100 g) in addition to the sales price. This helps customers compare products and complies with EU price indication rules.

How it works in the shop

  • In the product record you define the net content of the product and its unit (e.g. 750 ml, 2 kg, 100 g, 3 l, ...).
  • You also define the reference quantity and its unit for which the base price should be displayed (e.g. 1 l, 1 kg, 100 g, ...).
  • The shop calculates the base price dynamically from the current sales price (including discounts) and displays it in the frontend.

Product fields involved

  • Net content: Numeric content amount stored in field "nettoContent"
  • Content unit: Measurement unit of the net content (e.g. g, kg, ml, l)
  • Base price reference quantity: Numeric reference amount stored in field "basePriceContent"
  • Base price unit: Measurement unit of the base price reference quantity

Example

  • Product price: 3.75 €
  • Net content: 750 ml
  • Base price reference: 1 l
  • Resulting base price: 5.00 € per 1 l

Fluid usage

<f:if condition="{product.basePriceAsFloat}">
    <small class="{settings.detail.css.class.infos.price.basePrice}">
        <f:render partial="Price" arguments="{settings: settings, price: product.basePriceAsFloat}"/> <f:translate key="tx_shop_label.base_price_per" /> {product.basePriceUnitArray.label}
    </small>
</f:if>

Notes

  • Base prices are only calculated if both the net content and the base price reference (including units) are set and valid.
  • The calculation always uses the current product price after discounts.
  • Rounding follows standard business rounding to 2 decimals.

Examples

Example data table

uid label short factor type_label dimension Note / factor base
11 Millimeter mm 1 Length length 1 mm
7 Zentimeter cm 10 Length length 1 cm = 10 mm
12 Dezimeter dm 100 Length length 1 dm = 100 mm
8 Meter m 1.000 Length length 1 m = 1.000 mm
13 Kilometer km 1.000.000 Length length 1 km = 1.000.000 mm
14 Quadratmillimeter mm² 1 Area area 1 mm²
15 Quadratzentimeter cm² 100 Area area 1 cm² = 100 mm²
16 Quadratdezimeter dm² 10.000 Area area 1 dm² = 10.000 mm²
9 Quadratmeter m² 1.000.000 Area area 1 m² = 1.000.000 mm²
17 Kubikmillimeter mm³ 1 Volume volume 1 mm³
18 Kubikzentimeter cm³ 1.000 Volume volume 1 cm³ = 1 ml
1 Milliliter ml 1.000 Volume volume 1 ml = 1 cm³
19 Zentiliter cl 10.000 Volume volume 1 cl = 10 ml
20 Deziliter dl 100.000 Volume volume 1 dl = 100 ml
2 Liter l 1.000.000 Volume volume 1 l = 1.000 ml
21 Kubikdezimeter dm³ 1.000.000 Volume volume 1 dm³ = 1 l
10 Kubikmeter m³ 1.000.000.000 Volume volume 1 m³ = 1.000 l
3 Milligramm mg 1 Weight mass 1 mg
4 Gramm g 1.000 Weight mass 1 g = 1.000 mg
5 Kilogramm kg 1.000.000 Weight mass 1 kg = 1.000 g
22 Tonne t 1.000.000.000 Weight mass 1 t = 1.000 kg
6 Stück Stk 1 Quantity count Single item
23 Paar Paar 2 Quantity count 1 pair = 2 pieces
24 Dutzend Dz 12 Quantity count 1 dozen = 12 pieces
25 Sekunde s 1 Time time 1 second
26 Minute min 60 Time time 1 min = 60 s
27 Stunde h 3.600 Time time 1 h = 60 min
28 Tag d 86.400 Time time 1 day = 24 h

Example SQL inserts

INSERT INTO tx_shop_domain_model_productmeasurement
(uid, pid, label, short, factor, type_label, dimension, internal_notice, tstamp, crdate, cruser_id, deleted, hidden)
VALUES
    (11, 0, 'Millimeter', 'mm', 1, 'Länge', 'length', '1 mm', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (7, 0, 'Zentimeter', 'cm', 10, 'Länge', 'length', '1 cm = 10 mm', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (12, 0, 'Dezimeter', 'dm', 100, 'Länge', 'length', '1 dm = 100 mm', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (8, 0, 'Meter', 'm', 1000, 'Länge', 'length', '1 m = 1.000 mm', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (13, 0, 'Kilometer', 'km', 1000000, 'Länge', 'length', '1 km = 1.000.000 mm', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (14, 0, 'Quadratmillimeter', 'mm²', 1, 'Fläche', 'area', '1 mm²', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (15, 0, 'Quadratzentimeter', 'cm²', 100, 'Fläche', 'area', '1 cm² = 100 mm²', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (16, 0, 'Quadratdezimeter', 'dm²', 10000, 'Fläche', 'area', '1 dm² = 10.000 mm²', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (9, 0, 'Quadratmeter', 'm²', 1000000, 'Fläche', 'area', '1 m² = 1.000.000 mm²', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (17, 0, 'Kubikmillimeter', 'mm³', 1, 'Volumen', 'volume', '1 mm³', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (18, 0, 'Kubikzentimeter', 'cm³', 1000, 'Volumen', 'volume', '1 cm³ = 1 ml', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (1, 0, 'Milliliter', 'ml', 1000, 'Volumen', 'volume', '1 ml = 1 cm³', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (19, 0, 'Zentiliter', 'cl', 10000, 'Volumen', 'volume', '1 cl = 10 ml', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (20, 0, 'Deziliter', 'dl', 100000, 'Volumen', 'volume', '1 dl = 100 ml', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (2, 0, 'Liter', 'l', 1000000, 'Volumen', 'volume', '1 l = 1.000 ml', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (21, 0, 'Kubikdezimeter', 'dm³', 1000000, 'Volumen', 'volume', '1 dm³ = 1 l', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (10, 0, 'Kubikmeter', 'm³', 1000000000, 'Volumen', 'volume', '1 m³ = 1.000 l', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (3, 0, 'Milligramm', 'mg', 1, 'Gewicht', 'mass', '1 mg', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (4, 0, 'Gramm', 'g', 1000, 'Gewicht', 'mass', '1 g = 1.000 mg', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (5, 0, 'Kilogramm', 'kg', 1000000, 'Gewicht', 'mass', '1 kg = 1.000 g', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (22, 0, 'Tonne', 't', 1000000000, 'Gewicht', 'mass', '1 t = 1.000 kg', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (6, 0, 'Stück', 'Stk', 1, 'Stückzahl', 'count', 'Einzelstück', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (23, 0, 'Paar', 'Paar', 2, 'Stückzahl', 'count', '1 Paar = 2 Stück', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (24, 0, 'Dutzend', 'Dz', 12, 'Stückzahl', 'count', '1 Dutzend = 12 Stück', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (25, 0, 'Sekunde', 's', 1, 'Zeit', 'time', '1 Sekunde', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (26, 0, 'Minute', 'min', 60, 'Zeit', 'time', '1 min = 60 s', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (27, 0, 'Stunde', 'h', 3600, 'Zeit', 'time', '1 h = 60 min', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0),
    (28, 0, 'Tag', 'd', 86400, 'Zeit', 'time', '1 Tag = 24 h', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0);
Last change: 2026-11-23
Documentation
TYPO3 Shop Extension

TYPO3 Shop by coding.ms

An extensive shop for TYPO3 for realizing Webshops, Online-Shops or Payment-Subscriptions, comparable with tt_products, Cart or Aimeos. It includes PayPal, PayPal-Checkout, Klarna, Stripe, Bookmarks, UPS-API, invoice generation, a backend module, compare feature, graduated prices, plus product variants, filters, and tax and shipping logic for practical shop operations.

Menu

Contact request

You can contact us at any time

Stop! Playing in the meantime?
Stop! Playing in the meantime?
Stop! Playing in the meantime?

Stop! Playing in the meantime?

Break the highscore

Press Start
Contact request
Screenreader label
Security question
_R__________PFZ______
IN_____K____7_____KQU
_N____XRQ___MGL______
_S_____6______L___PM9
2JU_________NOT______
Dein Online-
Adventskalender
Entdecken →