The addon currently brings in the following content:
- Images for products.
- Variants for products.
The addon pulls the following information for products. Although you can remove any of this from the editor there are a few fields that are required for the addon to work.
|Product ID||Used to fetch data from the admin API.||Y|
|Storefront ID||Used to integrate the frontend for Shopify||Y|
|Handle||Identifier for products. Sets as slug||Y|
|Title||Product title as shown in Shopify|
|Body HTML||Any content from the Shopify editor|
|Product Image||Main image as set in Shopify|
|Gallery||All further images uploaded to products|
|Variants||All variants, assigned to their own blueprint|
|Vendor||Taxonomy for vendor|
|Tags||Taxonomy for product tags|
|Type||Taxonomy for product types|
|Published at||When the product was published on Shopify|
By default, we overwrite any content pulled from Shopify over the stored values in Statamic.
You can change this by editing the
overwrite option in the config file. The following are currently able to be switched between overwriting or not.
/** * Whether the importer should overwrite data from Statamic. */ 'overwrite' => [ 'title' => true, 'content' => true, 'vendor' => true, 'type' => true, 'tags' => true ]
The addon pulls the following information for variants.
|Variant ID||Used to fetch data from the admin API.||Y|
|SKU||Unique SKU for product|
|Product Slug||Used to match the variant to the product||Y|
|Title||Variant title as shown in Shopify|
|Price||The price for the variant|
|Inventory Quantity||How many products are in stock|
|Weight||Weight as stored in grams|
|Option 1||Option 1 from variant (Default Title if no variants added)|
|Option 2||Option 2 from variant (if non, returns null)|
|Option 3||Option 3 from variant (if non, returns null)|
|Requires shipping||Flag for if the product needs shipping|
The above fields will always be overwritten to stay in sync with Shopify