Wocart

@wocart/storefront v3.1.0


@wocart/storefront / astro / StoreRequestOptions

Interface: StoreRequestOptions

Properties

client

client: (locale?) => object

The request's client in locale, or in the store's primary language when absent.

Parameters

locale?

string

Returns

object

cart

cart: CartNamespace

categories

categories: CategoriesNamespace

collections

collections: CollectionsNamespace

config

config: ConfigNamespace

geo

geo: GeoNamespace

menus: MenusNamespace

orders

orders: OrdersNamespace

pageData

pageData: PageDataNamespace

pages

pages: PagesNamespace

products

products: ProductsNamespace

shipping

shipping: ShippingNamespace


embedded?

optional embedded?: (pathname) => boolean

Whether a path serves part of a page rather than a page. Default: /api/ and /_server-islands/.

Parameters

pathname

string

Returns

boolean


fallback

fallback: StoreConfig

What renders when the store's config cannot be read: unavailableStoreConfig(…).