Commercial Pricing Formulas & Multi-Variant Rules (.airpm)
Option pricing models (.airpm files) define the commercial calculation engine and multi-variant rules for configurable products.
An option model defines a basePrice, a collection of optionSets bound to tabular datasets, and conditional rules (e.g., 'If 38mm Case is selected, Leather Strap adds +$15.00 instead of +$10.00').
Aircada strictly adheres to the Stripped .airpm Standard (typeVersion: 1.02): option models contain only basePrice and optionSets referencing datasetId. They NEVER embed duplicate options: [] arrays, preventing state synchronization desyncs.
- Base Price & Surcharges: Total Price = Base Price + sum of active selected row price offsets.
- Stripped .airpm Standard: Option sets must strictly bind via datasetId and defaultOptionId; never embed raw options arrays.
- Multi-Variant Dependency Rules: Rules define conditional behavior (SETPRICE, DISABLEOPTION, REQUIRE_OPTION) based on active store state.
- Checkout Payload Generation: Bundles selected variant IDs, engraving strings, and calculated total into ecommerce cart payloads.






