Unpublish product

The Unpublish product action makes the product that triggers the workflow unavailable on the selected sales channels.

Fields

The Unpublish product action contains the following fields.

Fields used in the action.
FieldDescription
PublicationThe publication(s) from which the product will be unpublished.

Triggers

The Unpublish product action has a hidden field added to it by the trigger. This field, Product ID, identifies the product to hide. The product ID is set by default and can't be changed.

The Unpublish product action can be used in workflows that start with the following triggers:

API details

To learn more, review the publishableUnpublish mutation.

Templates

Check if a single variant or all product variants are out of stock at all locations

When the inventory changes for a variant, check if the variant or all of the products variants are out of stock across all locations. View template

Get notified when inventory is low and hide products when out of stock

Alert marketing and fulfillment on low stock products and hide out of stock products. View template

Hide and republish products based on inventory level

Hide out of stock products from your online store and republish when they have at least a variant with inventory. View template

Hide limited edition products after a product drop

Hide limited edition products after a set period of time. View template

Merchandise low stock products and hide when out of stock

Create urgency for low stock products by adding them to a sale collection, and hide from your online store when they are out of stock to avoid unhappy customers. View template

Schedule products to be removed from Online Store at the specified date and time

At a single date in the future, remove products from online store by tag, id, or sku. Makes use of Scheduled time trigger, Get Product Data action, For Each loop. View template

Can’t find the answers you’re looking for? We’re here to help.