Hi,
Thanks for using our plugin and reaching out to us. I think this blog post will answer your question: https://adtribes.io/create-a-product-feed-for-one-specific-category/
Hope this helps?
Thread Starter
kk450
(@kk450)
maybe I didn’t put it that way
There is a ready-made feed with many products, some products are included in several categories.
But the site for which this feed was created works according to the rules: 1 product = 1 category.
Can I leave only one category in this feed for products that have several categories?
Yes, by creating the filters that is shown in the blog post we shared earlier.
Thread Starter
kk450
(@kk450)
Thank you for helping! In your example, a feed is generated for one category, I have a different situation
The category structure looks like this:
Leather chairs (category)
— product 1
— product 2
— product 3
Blue chairs (category)
— product 2
— product 4
“Product 2” is in 2 categories at once, and therefore the feed now displays it in the form
<offer id="182" available="true">
<url>https://.... </url>
<price>98</price>
<currencyId>USD</currencyId>
<categoryId>112</categoryId>
<categoryId>121</categoryId>
<name>product 2</name>
<picture>https://....jpg</picture>
</offer>
As you can see from the xml code, the codes for both categories are provided.
<categoryId>112</categoryId>
<categoryId>121</categoryId>
The site receiving the feed requires that each product have only one category specified. In my case, it doesn’t matter which category is indicated, the main thing is that each product has one category.
I need to leave only one category and exclude all others.
As a result I should get:
<offer id="182" available="true">
<url>https://.... </url>
<price>98</price>
<currencyId>USD</currencyId>
<categoryId>112</categoryId>
<name>product 2</name>
<picture>https://....jpg</picture>
</offer>
Thanks for the clarification, now I understand 🙂
For what marketing channel are you creating this feed so we can try replicating it?
Thread Starter
kk450
(@kk450)
Thanks for the clarification. This can only be done when you set one of those product categories as a primary category using the Yoast or Rankmath SEO plugins. See: https://yoast.com/help/how-to-select-a-primary-category/
Assuming the issue at hand has been resolved and/or our support is no longer required we will close this topic for housekeeping reasons now.
Do not hesitate to contact us whenever you need our help again.