intents in your SwishOptions.
Save behavior
Pass a function to
promptVariantIfMissing when certain products should skip the variant selector. The function receives the product and variant (if selected) and returns true to show the selector or false to skip it. Product metafields are available when configured under metafields.
Unsave behavior
selectList only applies to stores with more than one list. Running a single
list - or the classic
wishlist page - skips the picker whatever this is set to, since there is
nothing to choose between.Edit saved product
Quick buy
Whether tapping the quick-buy button on a product card adds straight to cart or opens the quick buy dialog. To have customers confirm the variant and quantity in the dialog first:
By default, a card that already has a variant, such as an item saved with one, skips the dialog and adds that variant to the cart directly. It adds the amount on the card’s quantity stepper when one shows, and 1 otherwise. The button invokes
create:cart-line itself, so listeners on initiate:quick-buy won’t fire for it. Cards without a variant always open the dialog.
Cart behavior
Control what happens when items are added to or removed from the cart.Further reading
- Intents reference for all intent parameters and response types
- Full defaults reference for all intent defaults