Developer forum

Forum » PIM » PIM Feed - Products grouped by productgroup

PIM Feed - Products grouped by productgroup

Daniel Borg
Reply

Hi!

I am trying to create a Feed in PIM to export products grouped by productgroup to XML. I have looked at the documentation and searched the forum but haven't been able to find a solution to this.

If i create a query in "Shared Queries", i get this result where products are grouped by productgroup:


But if i create a similar query in Settings > Repositories > Products and create a Feed in PIM with these settings:
SETTINGS
- Name: Product Collections (XML)
INDEX
- Query: CollectionExport.query
- Override default parameters: 
- Sort By: -
CONTEXT
- Language: Swedish
- Currency: Svenska kronor
- Shop: -
- User: -
- Time: -
FORMAT
- Type: XML feed provider
- XSLT stylesheet: Nothing selected
OPTIONS
-
(And selected a couple of properties)

I get this result via the API URL (Products are listed without being grouped):


Is there a way to make the feed group products by productgroup as they are in the "Shared Queries" example above?

/Daniel


Replies

 
Michael Knudsen
Reply

Hello Daniel,

- at first I was a bit confused, but then I realized that you are talking about Variants, when you write "grouped by productgroup". I haven't played around with Variants in feeds, but I don't think you can have the products/variants 'grouped' in a feed, since it would take each product/variant in a <products> tag. Adding a XSLT could of course do the trick.

Maybe you should take a closer look at the feed section "Variant info" and see what information you can get from those fields.

Br. Michael Knudsen

 
Daniel Borg
Reply

Hello Michael,
Thank you for the quick response!

Sorry about the confusion, will look into formatting the feed with XSLT :)

/Daniel

 

 

You must be logged in to post in the forum