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.

Product Multiplier

The product multiplier lets you sell products whose price depends on a value that the customer enters – for example a length, an area, a weight or a quantity. Typical use cases are:

  • Profiles, mouldings, pipes or cables cut to length (price per mm or cm)
  • Fabrics, foils or artificial turf sold by the metre (price per cm)
  • Custom cuts of acrylic glass, wood or sheet metal (price per cm²)
  • Engravings or lettering (price per character)
  • Services billed by time (price per minute)

The price of a basket item consists of two parts:

  1. a fixed base price – this is the regular product price, e.g. a cutting fee, setup costs or a handling fee
  2. a variable part – the multiplier value entered by the customer times the multiplier price per unit

Pro version required

The product multiplier is a feature of the Pro version. Without the Pro version, an entered multiplier value is not applied, and the JSONAPI responds to a change of the value with the message "Product multiplier on basket items requires pro version!".

Terminology: base price of a multiplier product vs. base prices

In this documentation, base price refers to the fixed price component of a multiplier product (the product price). This is not the same as the base prices required by EU price indication rules (e.g. "€5.00 per 1 l"), which show the price per reference quantity.

Overview: who configures what?

Level Record Responsibility Typical role
1 Product type Enables the multiplier and defines default values (base price label and calculation, minimum included in base price) TYPO3 integrator / shop administrator
2 Measurement unit (product measurement) Defines the unit in which the customer enters the value (e.g. mm, cm², characters) TYPO3 integrator / shop administrator
3 Product (and variants) Defines the price per unit, the unit, minimum/maximum, and overrides the defaults of the product type if required Editor / shop administrator
4 Basket item Stores a snapshot of all price-relevant values at the time of the order filled automatically

1. Settings in the product type

In the product type, you will find the Multiplier palette in the Prices tab. Unless the multiplier is enabled in the product type, the multiplier fields are not displayed in the product record at all.

Field Database field Description
Multiplier multiplier_enabled Displays the multiplier fields in products of this type.
Multiplier variant multiplier_enabled_variant If enabled, variants can have their own multiplier values. If disabled, variants take over all multiplier values from the parent product.
Base price label multiplier_base_price_label Custom label for the fixed price component, e.g. "Cutting fee", "Handling fee" or "Setup fee". It is displayed in the price breakdown in the basket, the basket preview and the order emails. If empty, "Base price" is used.
Base price calculation multiplier_base_price_calculation Per item (per_item, default): the base price is charged for each ordered unit. Once per cart item (per_position): the base price is charged only once, regardless of the ordered quantity.
Minimum included in base price multiplier_minimum_included If enabled, the multiplier minimum is already included in the base price. Only the part of the entered value above the minimum is charged additionally.

Note

Graduated prices are currently not taken into account for multiplier products. Even if graduated prices are maintained in the product, they are ignored for a multiplier product.

2. Settings in the measurement unit

The unit in which your customer enters the multiplier value is a regular measurement unit record (Shop: Measurement, table tx_shop_domain_model_productmeasurement). New fields have been added for the multiplier:

Field Database field Description
Label label Full label, e.g. "Millimetre".
Short short Abbreviation, e.g. "mm". Displayed in the frontend next to the input field and in the price breakdown.
Factor (to smallest unit) factor Conversion factor to the smallest unit of the same dimension (required).
Measurement type type_label New, required. General category of the unit, e.g. "Length", "Area" or "Number of characters". It is used in the frontend as the label of the multiplier input field.
Dimension dimension New. Language-independent classification: length, area, volume, mass, count, time or other. Used to check the compatibility of units and for conversions. Selection lists are sorted by it.
Internal notice internal_notice New. Free text for internal notes, not displayed in the frontend.

Important: storage location of measurement units

The Multiplier unit selection in the product only offers measurement units that are stored in the same folder (pid) as the product. So create your measurement units in the product folder.

Tip: choose a small unit

Multiplier value, minimum and maximum are integers. If you want to sell with millimetre precision, choose "mm" as unit and not "m" – the price per unit may have up to 6 decimal places for this purpose.

3. Settings in the product

If the multiplier is enabled in the product type, you will find the Multiplier palette in the Prices tab of the product:

Field Database field Description
Price price The regular product price. For multiplier products, this is the base price (fixed price component). Depending on the price type, it is net or gross.
Multiplier price multiplier_price Price per unit with up to 6 decimal places, e.g. 0.012500 € per mm. It uses the same price type (net/gross) as the product price. If the value is greater than 0, the product is a multiplier product.
Multiplier unit multiplier_unit The measurement unit in which the customer enters the value.
Multiplier minimum multiplier_min Smallest allowed value. It is also the default value of the input field.
Multiplier maximum multiplier_max Largest allowed value. Must be set – with 0, no value greater than 0 is valid.
Base price calculation multiplier_base_price_calculation Inherit from product type (default), Per item or Once per cart item.
Minimum included in base price multiplier_minimum_included Inherit from product type (default), Minimum included in base price or Charge minimum additionally.

All multiplier fields are excluded from translation (l10n_mode = exclude). Translated products always use the values of the original product.

Attention

Whether a product is treated as a multiplier product depends solely on whether the multiplier price is greater than 0. If you disable the multiplier in the product type later on, the fields are hidden in the backend, but the stored values are kept. In this case, set the multiplier price to 0 beforehand.

Visualization: inheritance between product type, measurement unit and product

The following diagram shows where the effective values of a multiplier product come from:

flowchart LR
    subgraph PT["Product type"]
        PT1["Multiplier<br/>multiplier_enabled"]
        PT2["Multiplier variant<br/>multiplier_enabled_variant"]
        PT3["Base price label<br/>multiplier_base_price_label"]
        PT4["Base price calculation<br/>per_item / per_position"]
        PT5["Minimum included in base price<br/>checkbox"]
    end
    subgraph PM["Measurement unit"]
        PM1["Short<br/>short, e.g. mm"]
        PM2["Measurement type<br/>type_label, e.g. Length"]
        PM3["Dimension / factor<br/>dimension / factor"]
    end
    subgraph P["Product"]
        P0["Price = base price<br/>price"]
        P1["Multiplier price<br/>multiplier_price"]
        P2["Multiplier unit<br/>multiplier_unit"]
        P3["Minimum / maximum<br/>multiplier_min / multiplier_max"]
        P4["Base price calculation<br/>inherit / per_item / per_position"]
        P5["Minimum included in base price<br/>inherit / included / excluded"]
    end
    subgraph V["Product variant"]
        V1["own multiplier values<br/>or values of the parent product"]
    end
    subgraph E["Effective values"]
        E1["Base price label"]
        E2["Base price calculation"]
        E3["Included multiplier value<br/>= minimum or 0"]
        E4["Label and unit<br/>of the input field"]
    end
    PT1 -- "displays fields" --> P
    PT2 -- "off: variant takes over everything from the parent product<br/>on: variant maintains its own values" --> V1
    P -- "parent product" --> V1
    PM -- "selection" --> P2
    P2 --> E4
    PM2 --> E4
    PM1 --> E4
    PT3 -- "always from the product type" --> E1
    P4 -- "per_item / per_position" --> E2
    P4 -. "inherit" .-> PT4
    PT4 --> E2
    P5 -- "included: minimum<br/>excluded: 0" --> E3
    P5 -. "inherit" .-> PT5
    PT5 -- "enabled: minimum<br/>disabled: 0" --> E3
    P3 --> E3

Two fields in the product can inherit their value from the product type. The following decision trees show how the shop determines the effective value in each case.

Decision tree: base price calculation

If the field in the product is set to Inherit from product type, the setting of the product type is used. If no product type is assigned to the product, Per item applies.

flowchart TD
    A(["Base price calculation"]) --> B{"Value in the product?"}
    B -- "per_item" --> R1(["Per item"])
    B -- "per_position" --> R2(["Once per cart item"])
    B -- "inherit" --> C{"Product type assigned?"}
    C -- "yes" --> R3(["Value of the product type"])
    C -- "no" --> R1

Decision tree: minimum included in base price

If the field in the product is set to Inherit from product type, the checkbox in the product type decides. The result is the included multiplier value, which is later subtracted from the entered value.

flowchart TD
    D(["Minimum included in base price"]) --> E{"Value in the product?"}
    E -- "included" --> S1(["included:<br/>included value = minimum"])
    E -- "excluded" --> S2(["not included:<br/>included value = 0"])
    E -- "inherit" --> F{"Checkbox in the product type enabled?"}
    F -- "yes" --> S1
    F -- "no" --> S2

Variants

The usual product type logic applies to variants – the multiplier fields are treated as one group:

  • Multiplier enabled, Multiplier variant disabled: all multiplier fields (price per unit, unit, minimum, maximum, base price calculation, minimum included) are taken over from the parent product.
  • Multiplier and Multiplier variant enabled: each variant maintains its own multiplier values, e.g. a higher price per mm for an anodized variant of an aluminium profile.

In the backend variant comparison of the product, the multiplier fields appear in a separate Multiplier section.

How the price calculation works

For each basket item, the shop calculates:

Charged value     = max(0, multiplier value − included multiplier value)
Multiplier part   = charged value × multiplier price   (multiply first, then round to cents)
Unit price (per item):
    per_item:      base price              + multiplier part
    per_position:  base price ÷ quantity   + multiplier part   (base price share rounded to cents)
Item total = unit price × quantity

Important rules:

  • Rounding: The multiplier price has up to 6 decimal places. Rounding takes place only after the multiplication with the charged value, using commercial rounding to whole cents. Internally, the shop calculates with integers (millionths), so there are no rounding errors caused by floating point numbers.
  • Net/gross: The multiplier part is calculated in the same price type as the product price. With net prices, the tax is added to the combined unit price.
  • Discounts: A product discount is applied to the combined unit price (base price + multiplier part).
  • Graduated prices are not taken into account for multiplier products.
  • Validity: The multiplier value must be between minimum and maximum (both inclusive). Otherwise, the product is not added to the basket and your customer sees the message "Product multiplier must be between %1$d and %2$d!".
  • Separate items per value: If the customer adds the same product with different values to the basket (e.g. 1250 mm and 800 mm), two separate basket items are created. If the customer adds the same product with the same value again, only the quantity of the existing basket item is increased.

Calculation examples

Unless stated otherwise, all examples assume gross prices (B2C).

Example 1: aluminium profile cut to length (per item, minimum charged additionally)

A metal dealer sells aluminium profiles in any desired length. A cutting fee is charged for each cut profile.

Setting Value
Price (base price) €4.90
Base price label Cutting fee
Multiplier price €0.012500 per mm (= €12.50 per m)
Multiplier unit Millimetre (mm), measurement type "Length"
Minimum / maximum 100 mm / 6000 mm
Base price calculation Per item
Minimum included in base price Charge minimum additionally

The customer orders 2 pieces of 1250 mm each:

Charged value     = 1250 mm − 0 mm               = 1250 mm
Multiplier part   = 1250 × €0.0125 = €15.625     → €15.63
Unit price        = €4.90 + €15.63               = €20.53
Item total        = 2 × €20.53                   = €41.06

This is how the breakdown looks in the basket:

Cutting fee: €4.90 per item
Length: 1250 mm × €0.0125 per mm

Example 2: fabric by the metre (minimum included in base price)

A fabric shop sells decorative fabric with a minimum purchase of 50 cm. The base price already covers these 50 cm, each additional centimetre costs €0.18.

Setting Value
Price (base price) €12.00
Base price label Base price (incl. 50 cm)
Multiplier price €0.180000 per cm
Multiplier unit Centimetre (cm), measurement type "Length"
Minimum / maximum 50 cm / 500 cm
Base price calculation Per item
Minimum included in base price Minimum included in base price

The customer orders 1 piece of 120 cm:

Included multiplier value = 50 cm
Charged value             = 120 cm − 50 cm      = 70 cm
Multiplier part           = 70 × €0.18          = €12.60
Unit price                = €12.00 + €12.60     = €24.60

The basket shows:

Base price (incl. 50 cm): €12.00 per item (incl. 50 cm)
120 cm → 70 cm charged additionally × €0.18 per cm

Comparison: what does the "Minimum included in base price" setting change?

Entered value Minimum included Charge minimum additionally
50 cm (minimum) €12.00 + 0 × €0.18 = €12.00 €12.00 + 50 × €0.18 = €21.00
120 cm €12.00 + 70 × €0.18 = €24.60 €12.00 + 120 × €0.18 = €33.60
500 cm (maximum) €12.00 + 450 × €0.18 = €93.00 €12.00 + 500 × €0.18 = €102.00

Example 3: acrylic glass cut to size (once per cart item)

A plastics cutting service charges one-off setup costs for programming the laser. If several identical sheets are ordered, these costs are charged only once.

Setting Value
Price (base price) €20.00
Base price label Setup costs
Multiplier price €0.008500 per cm²
Multiplier unit Square centimetre (cm²), measurement type "Area"
Minimum / maximum 100 cm² / 10000 cm²
Base price calculation Once per cart item
Minimum included in base price Charge minimum additionally

The customer orders 4 sheets of 30 × 40 cm = 1200 cm² each:

Multiplier part       = 1200 × €0.0085              = €10.20
Base price per item   = €20.00 ÷ 4                  =  €5.00
Unit price            = €5.00 + €10.20              = €15.20
Item total            = 4 × €15.20                  = €60.80   (= €20.00 + 4 × €10.20)

For comparison with Per item:

Unit price            = €20.00 + €10.20             = €30.20
Item total            = 4 × €30.20                  = €120.80

Note on rounding with "Once per cart item"

The base price is distributed across the ordered quantity and rounded to cents. If it cannot be divided evenly, the item total may differ by a few cents. Example with 3 sheets: €20.00 ÷ 3 = €6.666… → €6.67 per item. Unit price €6.67 + €10.20 = €16.87, item total 3 × €16.87 = €50.61 instead of the mathematically exact €50.60.

Combination with "Minimum included in base price": If the minimum is included as well, only 1100 cm² of the 1200 cm² are charged: 1100 × €0.0085 = €9.35. Unit price €5.00 + €9.35 = €14.35, item total 4 × €14.35 = €57.40. The basket then shows "Setup costs: €20.00 per position (incl. 100 cm² per item)".

Example 4: assembled cable (6 decimal places)

An electronics retailer sells cables with millimetre precision. The price per metre of €2.35 corresponds to €0.00235 per mm – this could not be represented with only 2 decimal places.

Setting Value
Price (base price) €1.50
Base price label Assembly
Multiplier price €0.002350 per mm
Minimum / maximum 200 mm / 50000 mm
Base price calculation Per item

The customer orders 1 cable of 3333 mm:

Multiplier part = 3333 × €0.00235 = €7.83255   → €7.83
Unit price      = €1.50 + €7.83              = €9.33

Because the shop multiplies first and rounds afterwards, the result stays exact. If the price per mm were rounded to cents beforehand (€0.00), the cable would be free of charge.

In the frontend, multiplier prices are displayed with up to 6 decimal places, trailing zeros are removed (but at least 2 decimal places are kept): €0.00235, €0.0125, €0.18.

Example 5: B2B shop with net prices

The aluminium profile from example 1 is sold in a B2B shop with price type net and 19 % VAT:

Unit price net    = €4.90 + €15.63    = €20.53
Unit price gross  = €20.53 × 1.19     = €24.4307 → €24.43

So the tax is added to the combined unit price, not separately to the base price and the multiplier part.

Example 6: engraving by number of characters

Non-physical units are possible as well. A gift shop engraves names on cutting boards:

  • Measurement unit: label "Characters", short "chars", measurement type "Number of characters", dimension count
  • Price (base price): €24.90 (the cutting board itself), base price label "Cutting board"
  • Multiplier price: €0.450000 per character, minimum 1, maximum 30
  • Minimum included in base price: yes (the first character is included)

Engraving "Smith Family" (12 characters including the space): (12 − 1) × €0.45 = €4.95 → unit price €29.85.

4. The basket item (snapshot)

As soon as a multiplier product is added to the basket, the shop transfers all price-relevant values from the product (or its product type) to the basket item (tx_shop_domain_model_basketitem). When the order is completed, these values are permanently stored with the order.

In the backend, you will find the values in the Multiplier tab of the basket item. The fields are only visible if Multiplier available is set:

Field Database field Origin
Multiplier available multiplier 1 if the product is a multiplier product
Multiplier value multiplier_value Input of the customer
Multiplier unit multiplier_unit Multiplier unit of the product
Multiplier base price multiplier_base_price Product price (base price)
Base price label multiplier_base_price_label Base price label of the product type
Base price calculation multiplier_base_price_calculation Effective setting (after resolving "Inherit from product type")
Included multiplier value multiplier_included_value Multiplier minimum if the minimum is included – otherwise 0
Multiplier price multiplier_price Multiplier price of the product (6 decimal places)
Unit price (net/gross), VAT price, price_with_tax, tax Result of the price calculation

Visualization: transfer from the product to the basket item

flowchart LR
    subgraph K["Customer"]
        K1["Input in the frontend<br/>e.g. 1250 mm"]
    end
    subgraph PT["Product type"]
        PT3["Base price label"]
    end
    subgraph P["Product (effective values)"]
        P0["Price"]
        P1["Multiplier price"]
        P2["Multiplier unit"]
        P3["Minimum"]
        P4["Base price calculation<br/>resolved"]
        P5["Minimum included?<br/>resolved"]
    end
    subgraph B["Basket item (snapshot)"]
        B0["multiplier = 1"]
        B1["multiplier_value"]
        B2["multiplier_unit"]
        B3["multiplier_base_price"]
        B4["multiplier_base_price_label"]
        B5["multiplier_base_price_calculation"]
        B6["multiplier_included_value"]
        B7["multiplier_price"]
        B8["price / price_with_tax / tax"]
    end
    K1 --> B1
    P1 -- "price greater than 0" --> B0
    P0 --> B3
    PT3 --> B4
    P4 --> B5
    P3 --> B6
    P5 -- "yes: minimum<br/>no: 0" --> B6
    P1 --> B7
    P2 --> B2
    B1 --> CALC(("Price calculation"))
    B3 --> CALC
    B5 --> CALC
    B6 --> CALC
    B7 --> CALC
    CALC --> B8

And this is how the snapshot affects existing orders:

sequenceDiagram
    actor Customer
    participant Product
    participant Item as Basket item
    actor Admin as Shop administrator
    Customer->>Product: Add profile with 1250 mm to the basket
    Product->>Item: Copy base price €4.90, €0.0125 per mm, per item, ...
    Customer->>Item: Complete order
    Note over Item: Values are stored with the order
    Admin->>Product: Change price to €5.50 and €0.0140 per mm
    Note over Product: New orders use the new values
    Admin->>Item: Open order, invoice, cancellation or return
    Item-->>Admin: Still €4.90 + 1250 mm × €0.0125 = €20.53

Why are the values copied to the basket item?

A product record changes over time: prices are adjusted, the unit is changed, the minimum is increased or the product type gets a different calculation mode. If an order only referenced the product, every such change would also retroactively change existing orders – order confirmation, invoice, cancellation invoice and return would no longer match.

That is why the basket item stores a snapshot of all values required for the price calculation and the display. The price breakdown in order emails and in the backend is generated exclusively from these stored values. When a basket item is cloned (e.g. for cancellations and returns), all multiplier values are copied as well.

As long as the customer has not placed the order, the basket is rebuilt from the current product data on every request. If you change a product while it is in an open basket, the customer will already see the new values there.

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
A8K_________5RP______
7_B____C____S_H___JUH
E_X___Z1K___2JT______
M_H____1____7_W___HF6
U3Y_________H4Z______
Dein Online-
Adventskalender
Entdecken →