Liquid Cart And Checkout
Liquid themes own markup. The platform commerce runtime owns behavior. That keeps checkout rules in one tested place instead of duplicating them across every theme.Product Form
UseproductForm(...) with platform data:
- selected variant
- addons
- custom fields
- quantity bounds
- stock and out-of-stock states
- add-to-cart payloads
- buy-now payloads
Product Cards
Product cards can use platform Alpine controllers and data attributes:Cart Drawer And Checkout Modal
Mount shared snippets from the layout:Hosted Checkout
Checkout is always finalized by Shoppex hosted checkout. Liquid themes should not:- collect card data
- create provider sessions directly
- decide gateway state
- infer payment status
Safe Customization
Good customizations:- button labels
- layout and spacing
- icons and badges
- drawer structure
- empty-cart text
- product-card presentation
- replacing stock checks
- bypassing quantity bounds
- creating payment sessions from theme JavaScript
- embedding a secret API key
- manually constructing invoice URLs
Next Steps
Core Contract
Template vs producer responsibilities.
Troubleshooting
Fix add-to-cart, coupon, and checkout issues.