Ready

Addon pricing

computeAddonPrice and Admin addon cents; Shopify money sync marked Next.

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 addon when a real image is present (placeholder width/height 0 does not charge).
  • custom_text — component addon when text is non-empty; optional extraLineAddon per extra newline.
  • option_select — selected option’s addon when 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.

← All guides