Get Started
How to create product feed rules - AdTribes
  1. Home
  2. Knowledge Base
  3. Filters & Rules
  4. How to create product feed rules

How to create product feed rules

A missing brand name, a price that needs adjusting for a promotion, or a title that needs tweaking for one marketplace: fixing each product by hand in WooCommerce isn’t practical once your catalog grows. The Rules Builder in Product Feed Pro lets you set conditional “IF… THEN…” logic once, and it applies across your whole feed automatically, without changing your store’s actual product data.

We have introduced the Rules Builder in the Product Feed Pro version 13.4.6. This moves the Rules creating feature to a separate tab in your feed step that was previously combined with the Filters and Rules step. It also enhances the UI/UX and expands functionality, now allowing you to easily chain multiple include/exclude filters and create conditional groupings with OR logic for more flexible filtering.

What is the Rules Builder?

The Rules Builder is a visual tool that lets you create “IF… THEN…” logic to modify product data directly in your feed without changing your store’s original product information.

  • The IF section lets you define one or more conditions that must be met for the rule to apply.
  • The THEN section specifies the actions to take when those conditions are true, such as setting, appending, or adjusting attribute values.
  • You can add multiple conditions and actions, and combine them using logical operators (AND/OR) for flexible, advanced feed customization.

This makes it easy to enrich, correct, or optimize your feed data for specific marketplaces or campaigns.

Accessing the Rules Builder

To access the Rules Builder:

  1. Navigate to the Product Feed → Manage feeds screen.
  2. Edit an existing feed or create a new one.
  3. Click on the Rules tab at the top navigation menu.
  4. You’ll see the Rules Builder interface.
Rules Builder interface

Understanding the interface

The Rules Builder interface is designed for quick, visual creation of conditional logic. Here’s what you’ll find:

The Rules Builder on the Rules tab of a product feed, showing the IF and THEN sections with Add New AND Condition, Add Group, Add Then and Save Rules
  • Rule Number: Each rule is listed sequentially, so you can easily manage multiple rules in one feed.
  • Condition Area (IF): A space where you can add one or more conditions by selecting attributes, operators, and values.
  • Action Area (THEN): Where you define what should happen when your conditions are met.
  • Add New “AND” Condition: Add another condition within the same group (all must be true).
  • Add Group: Create separate condition groups connected by OR logic.
  • Add Then: Apply additional actions when the same IF conditions are true.
  • Add New Rule: Start a new, separate rule.
  • Delete icons: Remove unwanted conditions, actions, or entire rules quickly.

Creating a rule

Step 1: Define the condition (IF…)

  1. In the IF section, select the attribute you want to check (e.g., Product name, Category, Price, Stock Status).
  2. Choose a comparison operator (e.g., Contains, Equals, Greater Than, Less Than).
  3. Enter the value you want to compare against (e.g., “Shoes”, “20”, “In Stock”).
  4. Use Add New “AND” Condition to add more conditions that must all be true.
  5. Use Add Group to create an OR relationship between groups of conditions.

The comparison dropdown offers the following operators:

OperatorDescriptionAvailable on
ContainsValue includes the given text.Pro & Elite
Not ContainsValue does not include the given text.Pro & Elite
EqualsValue exactly matches the given text or number.Pro & Elite
Not EqualsValue does not exactly match the given text or number.Pro & Elite
Greater ThanNumeric value is greater than the given number.Pro & Elite
Less ThanNumeric value is less than the given number.Pro & Elite
Greater Than or EqualNumeric value is greater than or equal to the given number.Pro & Elite
Less Than or EqualNumeric value is less than or equal to the given number.Pro & Elite
Is EmptyAttribute has no value.Pro & Elite
Is Not EmptyAttribute has a value.Pro & Elite
Character Count Greater ThanValue’s character count is greater than the given number.Elite only
Character Count Greater Than or EqualValue’s character count is greater than or equal to the given number.Elite only
Character Count Less ThanValue’s character count is less than the given number.Elite only
Character Count Less Than or EqualValue’s character count is less than or equal to the given number.Elite only
In ListValue matches any item in a comma-separated list (e.g. 101, 245, 389). See How to use In List and Between conditions in Elite.Elite only
BetweenNumeric value falls within an inclusive range. See How to use In List and Between conditions in Elite.Elite only

Step 2: Define the action (THEN…)

The THEN section tells the plugin what action to take when the IF conditions are met. This is where you choose the attribute to modify and how to modify it.

  1. Select the Attribute to Modify: From the Select attribute dropdown, choose the feed attribute you want to change (e.g., Product name, Price, Brands).
  2. Choose the Action Type: From the middle dropdown, select one of the available actions.
  3. Enter the Value: In the Enter value field, type the text, number, or replacement value needed for the action.
  4. Add More Actions (Optional): Click Add Then to perform multiple actions within the same rule.

Product Feed Pro / Elite offers the following action types:

ActionDescriptionAvailable on
Set ValueReplace the attribute with a specific value you enter.Pro & Elite
Find and ReplaceSearch the attribute’s value for specific text and replace it with something else.Pro & Elite
MultiplyMultiply the attribute’s numeric value by a number.Pro & Elite
DivideDivide the attribute’s numeric value by a number.Pro & Elite
PlusAdd a number to the attribute’s numeric value.Pro & Elite
MinusSubtract a number from the attribute’s numeric value.Pro & Elite
Set AttributeCopy the value from another product attribute into the target field. See How to Use the “Set Attribute” Rule in Product Feed Elite.Elite only
Exclude AttributeRemove the target field entirely from the feed output. See How to Use “Exclude Attribute” Rule in Product Feed Elite.Elite only
Combine FieldsBuild one field’s value out of multiple attributes and fixed text, in an order you control. See How to combine and truncate feed fields in Product Feed Elite.Elite only
Truncate to Character LimitShorten a field to a maximum number of characters, so it fits requirements like Google Shopping’s 150-character title limit. See How to combine and truncate feed fields in Product Feed Elite.Elite only

Step 3: Add more rules (optional)

Click Add New Rule to create additional rules for other product modifications. Each rule is processed independently.

Example

IF:

  • Category contains “Winter Collection”
  • AND Price is less than 50

THEN:

  • Reduce Price by 10%
Rules Builder example rule

Saving and applying rules

  • Once all rules are configured, click the Save Rules button.
  • Generate or refresh your feed to apply the changes.

Tips for effective rules

  • Start with simple rules before adding complex AND/OR groups.
  • Use specific attributes to avoid unintentionally modifying too many products.
  • Test your rules by generating a small sample feed before applying them to the full product catalog.

Rules use cases

Need further assistance?

If you need any further assistance or are having issues with filters, feel free to open a support ticket to reach out to our support team.

Please note that the ticket support system is exclusive to Product Feed ELITE users.

If you’re using only the Product Feed Pro plugin, feel free to open a new topic in the WordPress.org forum.

Was this article helpful?

Related Articles

Complete Your Purchase
AdTribes WooCommerce Product Feed

The best WooCommerce product feed plugin

  • AdTribes Pty Ltd
    ABN: 40 675 636 816
Product
Resources & Info
Partner Sites
Rymera