> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.stock-sync.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Advanced Settings for Update Feed

Automatically manage product visibility and lifecycle states based on real-time stock levels. Use these settings to auto-publish in-stock items across specific sales channels or automatically archive and hide out-of-stock products.

|| This option is available exclusively in Step 4 (Advanced Settings) of Update feeds. When the **Published** field is mapped in Step 2, auto-publish and hide settings are disabled. To use these automated settings, unmap the Published field.

---

## How to Set Up Product Visibility and Lifecycle Rules

Go to **App** → **Feed Settings** → **Step 4: Advanced Settings**

1. **Verify Prerequisites**: Confirm that [Track Quantity](https://help.shopify.com/en/manual/products/inventory/transfers/enable-tracking) is enabled under **Step 2: Matching Column** by adding the **Track Inventory** field.
2. **Configure Auto-Publish**: Choose your publishing trigger under **Auto publish products** and select target sales channels via **Manage sales channel**.
3. **Configure Archive or Hide Rules**: Select the appropriate scope under **Auto archive products** or **Auto unpublish/hide products** to handle out-of-stock inventory.

| To enable these features, ensure Shopify inventory tracking is active and **Continue selling when out of stock** is disabled for your target products.

---

## Product Visibility Smart Settings / Detailed Breakdown

### 1. Auto Publish Products
Automatically publishes products to your store whenever at least one variant has a quantity greater than zero.

![Auto Publish Options](https://storage.crisp.chat/users/helpdesk/website/b219050a5836c000/screenshot-2024-10-11-at-45621_j2g58p.png)

#### (a) No Action
Does not modify the publication state of any products.

| Select this option if you prefer to manage product publishing manually in your store admin.

#### (b) All Filtered Products in Store
Automatically publishes all products within the store that pass your Step 3 filters if any one of their variants has a quantity greater than zero.

![All Filtered Products in Store - Publish](https://storage.crisp.chat/users/helpdesk/website/b219050a5836c000/screenshot-2024-10-11-at-45257_bky2br.png)

| Example: If your filtered store scope contains 50 products that have more than zero quantity, all 50 products will be automatically published.

#### (c) Matching Products Within a Feed File
Automatically publishes only products matched from the current feed file, provided their variant quantity is greater than zero.

![Matching Products Feed File - Publish](https://storage.crisp.chat/users/helpdesk/website/b219050a5836c000/screenshot-2024-10-11-at-45311_9w6m2o.png)

| Example: If your supplier feed updates 10 matched products with available inventory, only those 10 products are published.

#### (d) Manage Sales Channel
Select the exact sales channels where published products should appear.

![Manage Sales Channel Selection](https://storage.crisp.chat/users/helpdesk/website/b219050a5836c000/screenshot-2024-10-11-at-45507_1av1rbq.png)

| Example: If you sell on both Online Store and TikTok Shop, you can choose to auto-publish restocked products exclusively to your Online Store.

### 2. Auto Archive Products
Automatically changes product status to **Archived** when all variant quantities reach zero across all locations and overselling is disabled.

![Auto Archive Options](https://storage.crisp.chat/users/helpdesk/website/b219050a5836c000/screenshot-2024-10-11-at-50048_1rlo0wj.png)

#### (a) No Action
Leaves the current product status unchanged.

| Select this option if you want out-of-stock items to remain in their current Active or Draft state.

#### (b) All Filtered Products in Store
Automatically archives any product in your filtered store scope where variant quantities are zero or less across all locations, provided [Continue selling when out of stock](https://help.shopify.com/en/manual/products/inventory/getting-started-with-inventory/selling-when-out-of-stock) is disabled.

![All Filtered Products in Store - Archive](https://storage.crisp.chat/users/helpdesk/website/b219050a5836c000/screenshot-2024-10-11-at-50058_z3dsxv.png)

| Example: If 50 filtered store products have zero inventory across all locations and overselling is disabled, all 50 products are moved to Archived.

#### (c) Matching Products Within a Feed File
Automatically archives only items matched from the feed file whose scanned variant quantities are zero or negative.

![Matching Products Feed File - Archive](https://storage.crisp.chat/users/helpdesk/website/b219050a5836c000/screenshot-2024-10-11-at-50107_6w1ux3.png)

| Example: If a supplier feed updates 10 matching products with zero stock, only those 10 products are archived.

### 3. Auto Unpublish/Hide Products
Automatically unpublishes or hides products from sales channels when all variant quantities are zero across all locations and overselling is disabled.

![Auto Unpublish Options](https://storage.crisp.chat/users/helpdesk/website/b219050a5836c000/screenshot-2024-10-11-at-50048_2mjzi.png)

#### (a) No Action
Does not alter sales channel visibility for out-of-stock items.

| Select this option if you want out-of-stock items to remain visible on your storefront.

#### (b) All Filtered Products in Store
Automatically unpublishes or hides all filtered store products if all variant quantities are zero or less across all locations, provided **Continue selling when out of stock** is disabled.

![All Filtered Products in Store - Unpublish](https://storage.crisp.chat/users/helpdesk/website/b219050a5836c000/screenshot-2024-10-11-at-50121_1wxsneq.png)

| Example: If 50 filtered products in your store reach zero stock and overselling is off, all 50 items are immediately hidden from sales channels.

#### (c) Matching Products Within a Feed File
Automatically unpublishes or hides only items matched from the incoming feed file whose variant quantity is zero or less.

![Matching Products Feed File - Unpublish](https://storage.crisp.chat/users/helpdesk/website/b219050a5836c000/screenshot-2024-10-11-at-50128_1q042gf.png)

| Example: If the feed updates 10 matched products with zero stock, only those 10 products are hidden from your sales channels.

---

## Key Rules & Technical Details

- **Field Mapping Override**: If the **Published** or **Status** field is mapped in **Step 2: Matching Column**, feed file values take absolute precedence, disabling these automated settings.
- **Inventory Tracking Requirement**: Products must have **Track Quantity** enabled in Shopify for Stock Sync to evaluate stock-based visibility triggers.
- **Overselling Check**: Auto-archive and auto-unpublish rules trigger ++only when "Continue selling when out of stock" is disabled++ in Shopify. If overselling is allowed, the product remains active and published regardless of quantity.
- **Multi-Location Total**: For products with multiple locations, Stock Sync checks total stock across ++all locations++. If any location holds quantity greater than zero, the item is not hidden or archived.
- **Execution Pipeline**:
||| Priority sequence: Step 2 Published/Status Mapping Check → Inventory Tracking Validation → Overselling Setting Check → Stock Level Evaluation across Locations → Publish / Archive / Unpublish Execution.

---

## Troubleshooting Steps

* **Issue**: Products with zero stock remain published and visible → **Solution**: Confirm that **Continue selling when out of stock** is disabled in Shopify, and check that the product has zero quantity across all store locations.
* **Issue**: Auto-publish and auto-unpublish options are greyed out or ignored → **Solution**: Go to **Step 2: Matching Column** and remove the mapping for the **Published** or **Status** field so Step 4 automated controls can take effect.
* **Issue**: In-stock products are not automatically publishing → **Solution**: Verify that **Track Inventory** is mapped and active, and check under **Manage sales channel** to confirm your active storefront is selected.
* **Issue**: Unrelated catalog products were archived unexpectedly → **Solution**: Change the scope from **All filtered products in store** to **Matching products within a feed file**, or apply strict **Store Product Filters** in Step 3.

---

## Good Articles to Continue

* [How to Set Up Store Product Filters](https://help.stock-sync.com/en/article/store-product-filter-1uqbxfq/) → Isolate specific vendors, tags, or collections to safely apply lifecycle and visibility rules.
* [How to Set Up the Out of Stock Strategy](https://help.stock-sync.com/en/article/out-of-stock-strategy-oos-m5qjng/) → Automatically set missing feed products to zero quantity before running archive or unpublish actions.
* [How to Set Up and Configure the Quantity Field](https://help.stock-sync.com/en/article/quantity-field-20bsw8/) → Manage inventory tracking and multi-location quantity configurations.