UNPKG

ez-shp-storefront

Version:

A helper function collection for Shopify storefront.

17 lines (16 loc) 765 B
export declare const cartFormElementQuery = "form[action=\"cart\"], form[action=\"checkout\"], form#CartPageForm, form#cart, form.cart"; export declare const checkoutButtonElementQuery = "main input[type=\"submit\"], main button.checkout, main button[type=\"submit\"], input[type=\"submit\"]#checkout, button[type=\"submit\"]#checkout, button[type=\"submit\"][name=\"checkout\"]"; export declare class Cart { static instance: Cart; data: { item_count: number; }; private constructor(); static getInstance(): Cart; isOnCartPage(): boolean; getCartItemCount(): number; get(): Promise<any>; clear(redirectUrl: string): Promise<void>; getCartFormElement(): HTMLFormElement; getCheckoutButtonElement(): HTMLElement; }