shopify-store
Use the <shopify-store> component to set up your credentials and market configuration for a storefront. You can optionally add a public access token, which gives you access to your store's inventory, metafields, and metaobjects. Use the Headless channel to manage API access for your storefront and get a public access token.
See the playground for more complete examples.
Anchor to attributesAttributes
- Anchor to store-domainstore-domainstore-domainstringstringrequiredrequired
The myshopify.com domain of the store.
- Anchor to buyNowbuyNowbuyNow(e: Event, options?: BuyNowOptions) => void(e: Event, options?: BuyNowOptions) => void
A method to open the checkout page with a selected product.
- Anchor to countrycountrycountryCountryCodeCountryCode
The country of the store.
- Anchor to customer-access-tokencustomer-access-tokencustomer-access-tokenstringstring
- Anchor to languagelanguagelanguageLanguageCodeLanguageCode
The language of the store.
- Anchor to public-access-tokenpublic-access-tokenpublic-access-tokenstringstring
The public access token from the Headless channel for the store. This attribute is required if you want to access product inventory count, metafields, metaobjects, or customer accounts.
BuyNowOptions
- discountCodes
string[] - target
Target
Target
The anchor target attribute for a link.
"_blank" | "_self" | "_parent" | "_top" | "_unfencedTop"Was this page helpful?