Purchase mode
The cart’s purchase mode is derived from line item metadata. Three modes are possible:
Use a helper like
getCartPurchaseMode(cart) to derive the current mode from line item metadata and drive your cart UI accordingly.
Displaying subscription items
For each subscription line item, show the billing cadence alongside the product. The cadence is stored in the line item’s metadata fieldsfrequency_interval and frequency_value:
Mixed cart guard
Mixed carts are not supported in the current release. If the cart contains both subscription and one-time items, disable the checkout CTA and show a clear explanation to the customer.If a customer wants to purchase a subscription item and a one-time item together, they need to use separate carts and complete them through their respective checkout flows.