How to Set Discount Prices In Feed Based on Product Title?
You sell products for Men, Women, and babies. You want to show a 20% lower price for Men’s products and a 10% lower price for Women’s products in your feed — without changing any prices in your store.
CTX Feed Pro lets you do this with Dynamic Attributes. You set the rule once, and CTX Feed automatically applies the right price to each product whenever the feed is generated.
Before you start: This feature is available in CTX Feed Pro only. If you have never created a Dynamic Attribute before, read How to Create a Dynamic Attribute first.
Video Tutorial — Watch the Full Setup First
Recommended: watch the video once, then follow the steps below as you set it up.
What You Will Build
This setup uses three Dynamic Attributes in total. Two hold the discount rules, and one combines them by checking the product title.
3-part setup overview:
- Men’s discount rule — a price rule that takes 20% off any price above zero
- Women’s discount rule — a price rule that takes 10% off any price above zero
- Combining rule — checks each product’s title and picks the right discount. Products without “Men” or “Women” in the title use the regular price.
✓ Map to feed — set your price field to use the combining rule
1. Create the Men’s discount rule (–20%)
This rule lowers any price by 20%
- Go to CTX Feed → Dynamic Attributes in your WordPress dashboard. Click Add New.
- In the name field at the top, type
Discount for Men. Do not use special characters in the name. - Click Add Condition. A new row appears. Fill it in like this:
| Field | Set it to | Why |
|---|---|---|
| Attribute | Price | We are working on the price field |
| Condition | Greater than | Only apply when the price exists |
| Value | 0 | Price must be more than zero |
| Output type | Pattern | We want to change the price by a percentage |
| Pattern value | -20% | Take 20% off the price |
- At the bottom of the page, set Default Attribute to Price. This is the fallback if no condition matches.
- Click Save.

2. Create the Women’s discount rule (–10%)
- Same setup as Part 1 — only the name and discount amount change
- Go to CTX Feed → Dynamic Attributes → Add New again. Name this one
Discount for Women. - Click Add Condition and fill in the row the same way — but change the Pattern value:
| Field | Set it to |
|---|---|
| Attribute | Price |
| Condition | Greater than |
| Value | 0 |
| Output type | Pattern |
| Pattern value | -10% |
Set the default attribute to Price. Click Save.
💡 You now have two discount rules saved. In Part 3, you create one more rule that reads each product’s title and picks which discount to use — or falls back to the normal price.
3. Create the combining rule
This rule checks the product title and picks the right discount
Go to CTX Feed → Dynamic Attributes → Add New. Name it Discount for Men and Women.
Condition row 1 — For products with “Men” in the title
Click Add Condition. Fill in the row:
| Field | Set it to |
|---|---|
| Attribute | Title |
| Condition | Contains |
| Value | Men |
| Output type | Attribute |
| Output value | Discount for Men |
Condition row 2 — For products with “Women” in the title
Click Add Condition again. Fill in a second row:
| Field | Set it to |
|---|---|
| Attribute | Title |
| Condition | Contains |
| Value | Women |
| Output type | Attribute |
| Output value | Discount for Women |
⚠️ Put the Women row before the Men row
The word “Men” appears inside “Women”. If the Men row is checked first, a product called “Women’s Jacket” could incorrectly match the Men rule. CTX Feed checks rows top to bottom and stops at the first match — so put Women first to avoid this.
At the bottom, set Default Attribute to Price. This means Baby products (and any others with no match) will use the normal price. Click Save.

Final Step — Connect It to Your Feed
Open your feed and scroll to the field list. Find the Price field. Click the value dropdown on the right side. Look for the group called Dynamic Attributes — your new rule will be listed there. Select a discount for Men and Women.

Click Update to save the feed. Then go to CTX Feed → Manage Feeds and click Update Feed to rebuild the file with the new pricing rules applied.
⚠️ Can’t find your new Dynamic Attribute in the dropdown? Go to the feed page and click Clear Cache (top right corner). New attributes only appear after the cache is cleared.
What Your Feed Will Look Like
Once the feed is updated, each product will show the correct price based on its title. Here is an example of what to expect:
| Product title | Original price | Price in feed | Rule applied |
|---|---|---|---|
| Men’s Running Shoes | $100.00 | $80.00 | –20% (Men rule) |
| Women’s Summer Dress | $80.00 | $72.00 | –10% (Women rule) |
| Baby Romper | $30.00 | $30.00 | No change (Default price) |
The generated feed is

✅ Check before you submit. Use the feed preview to find one Men’s product, one Women’s product, and one non-matching product. Confirm each shows the price you expect before sending the feed to your shopping channel.
Good to Know
💡 Works with any field — not just the titleYou can set rules based on product category, brand, tag, or any other attribute. Just choose a different field in the Attribute column when setting up your conditions.
⚠️ This only affects the feed — not your storePrices in your WooCommerce store stay exactly as they are—only the price sent to the shopping channel changes.
💡 You can add more groups later Need a third discount group — like Kids at –5%? Create a fourth Dynamic Attribute for the Kids price rule, then add a third condition row to your combining rule. The same pattern scales to as many groups as you need.
You must be logged in to post a comment.
Is there a good way to use this technique to set a discounted sales price on the font end of the website? Say I wanted to discount all products from a certain brand in a specific product category by 15%, and set my sale start and end dates as well.
Hi Brad,
Our plugin is designed to apply changes on the feed only. So, applying sale price on the front end won’t be possible with our plugin. But, you can use plugins like WOOOCS and our plugin is compatible with WOOCS.
Thank you,
What must be done if our discount is based on product category? Dynamic Attribute is not in the “Value” dropdown. Please assist.
Hi James,
Please, go to Make feed > click the Clear Cache button on the right top and find the newly created dynamic attribute from the dropdown.
If you are not getting it on the list, reach out to our technical team from here – webappick.com/contact to get a quick fix.
Thank you,
the calculation is always wrong. i give -24% in my price value and i get higher discount than i should.