Skip to content

Commit f33ebe1

Browse files
committed
Add docs
1 parent c16f295 commit f33ebe1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/content/en/CMS/importing-data.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@ Alt text is imported from Shopify alongside each product and variant image. When
9999

100100
By default the `published` state and `published_at` of the product is determined by the values of `Online Store` sales channel. If you want to use a different sales channel to determine availability you can specify the name of the channel in the `SHOPIFY_SALES_CHANNEL` env variable, e.g. `SHOPIFY_SALES_CHANNEL="My other channel"`.
101101

102+
## Sales channel filtering
103+
104+
By default all Shopify products are imported regardless of whether they are assigned to the configured sales channel. To restrict imports to only products on the sales channel, set `import_all_products` to `false` in `config/shopify.php`:
105+
106+
```php
107+
'import_all_products' => false,
108+
```
109+
110+
When this is enabled, any product that is not assigned to the configured sales channel will be skipped. If a product was previously imported and is later removed from the sales channel, it and all of its variants will be deleted from Statamic on the next import.
111+
102112
## Metafields
103113

104114
Any product and variant meta fields will be automatically added to the Statamic entry data, with the same handle as their key in Shopify and using the raw value.

0 commit comments

Comments
 (0)