Custom Rules: Custom Product Rule
Custom Product Rule allows you to automatically tag your products in your Shopify store based on any product fields.
If the product gets updated and the product fields was changed, the tag will be removed if the rule no longer apply to the product.
In this article
Create new Custom Product Rule
- Click Add new rule > Custom Product Rule...
- Specify a name and description to identify the rule later.
- Specify the rule definition for your custom product rule.
- Specify which products you want to tag or skip by using the filter and/or conditions.
- Specify the labels and/or fields that you want to use as tags.
Learn more about Rule Definitions.
- Optional: Consider specifying a prefix to be added to the start of the tag label. Learn more about Prefix options.
- Check Enable Rule.
- Make use of the preview to ensure that the tag gets applied as expected.
- Click Save.
Custom Product Rule options
The following table shows the options available for Custom Product Rule:
Option | Description | Default | Required? |
Name | Give a name to easily identify this custom product rule. Leaving the name blank will create an auto-generated name. |
Empty | No |
Description | Give a description to remember this custom rule. Leaving the name blank will create an auto-generated name. |
Empty | No |
Rule Definition | Define the rule by letting Smart Tags know:
|
|
|
Prefix | Prepend each tag with the prefix. Leave blank if you don't want the tag to be prefixed with anything. Learn more about the prefix option. |
Empty | No |
Rule Definition options
The following table shows the options available for Rule Definitions:
Option | Description | Default | Required? |
Filter (For all or any products) |
|
all |
Yes |
Condition Mode (If product matches any or all of the following conditions) |
|
any | Yes |
Conditions | Define the condition(s) that a product must satisfy in order to be tagged, using any product fields. If there are no condition expressions, it will match all products. Click on Add condition to add a new condition expression to the rule definition. Learn more about Condition Expressions. |
||
Tag Labels | Tags that you want to label the product if it matches the above filter and conditions. | Empty | No |
Field Names | The values of the fields that will be used as tags to label the product if it matches the above filter and conditions. For example, specifying "Vendor" field will tag the product with "ACME", "Apple", "Nike", etc. |
Empty | No |