useCartCheckout
Checkout a cart via Shopify multi-pass (if customer is logged in) or regular if not logged in.
Checkout Function Options
The cartCheckout
function that is returned from the useCartCheckout
hook takes in an optional object as an argument.
Key
Value
Description
redirect
Boolean
Will stop the the automatic redirect and return you an object with the checkout url.
Example of manually getting Cart URL
Last updated