How to create a “If field A is empty then get B” rule?

Sometimes you may want to add an attribute value if another attribute value is empty. You can do it with the dynamic attribute feature. This feature is only available in CTX Feed Pro.

For example, Let’s say you have 5 products on your site. Among those 5 products, 2 of them have both descriptions & short descriptions and another 3 don’t have their short description, only have the description. In this case, you may want to add a short description into the feed for those products which have a short description else add the description.

add a short description into the feed for those products which have a short description else add the description.

To make the above condition, follow the steps below:

  • Make a Dynamic Attribute from Woo Feed > Dynamic Attribute according to the below screenshot.
CTX Feed dashboard
  • Go to the feed configuration page and clear the plugin cache.
CTX Feed plugin dashboard
  • You will find the Dynamic Attribute in the product attribute list on the feed configuration page. Look at the Dynamic Attributes option group you will see the DA_Description attribute here. Just select it and generate the feed file.
create if field a is empty then get b rule with ctx feed

You can also learn How To Create A Dynamic Attribute Rule with CTX feed WooCommerce product feed generator plugin in this following video tutorial:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.