Introduction to Product Rules
What are Product Rules
Sometimes you may want to have specific rules associated with a product in Shopify. For example, if a product is out of stock, you would hide the product so that it doesn’t appear in your online store, or if a product is on sale, it will have a tag to indicate that it is on sale and remove the tag when the product is no longer on sale.
Product Rules allow the Bulk Product Editor to check and make changes to your product in real-time when the product is updated in Shopify to ensure that these conditions are applied.
Examples of Product Rules
These are some examples of what you can do with Product Rules:
- Add a Tag to On Sale Products
This rule adds a tag to all products with at least one variant where the price is less than the compare price. Product Rules will also remove this tag if the product is no longer on sale.
- Hide out of stock products
If the inventory level of a product goes to zero or below, this rule will hide the product from the online store in real-time.
- Include the vendor name in the SEO title
This rule automatically adds the vendor name for a product to the end of the SEO title when creating or editing a product.
Limits on Usage
Because of the flexibility of Product Rules, it is possible to create two rules that will trigger each other. For example, one rule might add a tag, while another rule will delete the same tag.
To mitigate this scenario, if a product is updated more than 24 times in a single day, the Bulk Product Editor app will pause the rule updating the product.
Possible Delay
In rare situations, it might take more than a few seconds for the product rule to update if there are a lot of products being edited on your store at the same time because we're limited by the API limits. So in case there is a surge of activity, it might take a couple of minutes for the edits to appear on your store.