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 | null) => {
isReady: boolean;
wrapCustomAttributes: (
options: WrapStorefrontItemCustomAttributesParams
) => WrapStorefrontItemCustomAttributesResponse;
};useIgCartAttributes()
useIgCartAttributes()Last updated