How to create a feed with parent products only?

Sometimes, we need a feed with only parent products. In that case, you need to use the following advanced commands: rule noVariations(*) mapAttribute price to g:price This will remove the variation and include only parent products in a feed.

In case of WooCommerce, you have a price set for the parent product. After the first code removes the variable products from your feed, the second command will set the parent product price as default for product listing in feed. If you have any confusions regarding this, please feel free to contact our support team.