Actions

There is currently one method built into the addon that will let you look up variables.

Fetch Product Variables

You may want to add a way to search your variants to the frontend. An endpoint has been set up so you can query this via JavaScript.

Usage

SITEURL/!/shopify/variants/{product}?option1=VALUE&option2=VALUE&option3=VALUE
OptionDescriptionRequired
productProduct slug as stored in StatamicY
option1Value to search option1 forY
option2Value to search option2 forN
option3Value to search option3 forN

Returned Data

{
  title: 'Example Title',
  storefront_id: '',
  price: '10.00',
  inventory_quantity: 10
}
Edit this page on GitHub Updated at Fri, Oct 21, 2022