Skip to main content
Intent options control how save, unsave, and cart actions interact with the customer. Pass them under intents in your SwishOptions.
Looking to configure the layout of views like the drawer, home, or saves? See the Views overview.

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.
promptVariantIfPresent is already false by default, so saves from a product page that has its own variant picker happen instantly. Set it to true only if you want customers to confirm the variant in Swish as well.

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