Addon pricing lives on customizer components as integer cents (AddonPrice) so totals stay exact. Buyer UI calls computeAddonPrice(session, config) from @quarksb/batch-core.
What counts toward the total
- image_upload — component
addonwhen a real image is present (placeholder width/height 0 does not charge). - custom_text — component
addonwhen text is non-empty; optionalextraLineAddonper extra newline. - option_select — selected option’s
addonwhen set. - color_swatch — no addon line (SKU color axis only).
Admin cents
In the Admin panel (#/customizer), image and text components expose an “Addon cents” field. Values are USD cents (e.g. 200 = $2.00).
Shopify money sync (companion variants)
Line payloads include addonCents for display. When an AddonPrice.shopifyVariantId is set, buildAddonCompanionLines adds companion cart items so checkout can collect the fee. Theme App install on a live shop is still the remaining step — demos run in stub mode.