Cart & Checkout Hooks
useIgCart()
useIgCart()interface WrapStorefrontItemCustomAttributesParams{
productId: string;
variantId: string;
subscribeAndSave?: boolean
customAttributes?: {
key: string;
value: string;
}[] | null;
};
interface WrapStorefrontItemCustomAttributesResponse {
key: string;
value: string;
}[];
const useIgCart: (cartOrCheckoutToken: string | undefined | null) => {
wrapCustomAttributes: (options: WrapStorefrontItemCustomAttributesParams) => WrapStorefrontItemCustomAttributesResponse;
};useIgCheckout()
useIgCheckout()Last updated