CommerceProviderProps
Properties
Section titled “Properties”assetsProvider?
Section titled “assetsProvider?”
optionalassetsProvider?:string
The provider key of the Assets registration, when the page carries no ebitex-image reference to learn it from.
optionalcart?:CartOptions
Turns the cart on (see CartOptions).
children?
Section titled “children?”
optionalchildren?:ReactNode
commerce
Section titled “commerce”commerce:
CommerceClient
A Commerce Delivery client with a browser-safe key restricted to the site’s origins. Price and availability are always read through it, in the browser.
content?
Section titled “content?”
optionalcontent?:ContentClient
The Content client the site is rendered with: the storefront holder and product images are read through it. Without one there are no images, no labels from Content and no product links.
currency?
Section titled “currency?”
optionalcurrency?:string
An ISO 4217 code the store sells in, for products the sections read themselves (pinned products and lists). The store’s own currency by default. Give createProductData the same.
labels?
Section titled “labels?”
optionallabels?:Partial<Labels>
Labels in code, over the ones the holder Component carries and the English defaults.
locale?
Section titled “locale?”
optionallocale?:string
The locale money and numbers are formatted in. Default: the Content client’s resolved locale, else the browser’s.
productData?
Section titled “productData?”
optionalproductData?:ProductData
What createProductData(commerce) returned: the same object <Experience routeData> is given. Without it a section with no pinned product draws nothing.
visitors?
Section titled “visitors?”
optionalvisitors?:VisitorsLike
A visitors SDK instance (@ebitex/visitors-sdk). Selling does not need one. When given, a cart request carries the shopper’s visitor token only while it is a recognition token
(consent granted); the kit never stores it. When the instance forgets the device, the kit removes its own storage entries too.