Developer forum

Forum » PIM » Feed seems to be conflicting with IsVariant expression

Feed seems to be conflicting with IsVariant expression

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

I am running into a very off situation. I have a basic "Hello World" Feed and Channel, with basic products (no variants) and using the same Query as the website (no real requirement for now, just trying to setup the most basic feed possible)

 

I believe I've done everything right, but the products only render if I remove/disable the expression for "Is Variant" (or if I override the parameter default value to be empty)

  • I am using 9.15.9
  • I only have 1 group and 4 products in my Channel
  • I have very basic feed settings
  • You can see that I start getting results when I disable the expression
    https://app.screencast.com/zvStEXGBx7z7u

 

What am I missing or doing wrong?

 

Best Regards,

Nuno Aguiar


Replies

 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply

Hi Nuno,

I would not use the Product.query for Feeds, because it is made for Frontend use (Swift), where parameters are defined and coming from there ..

Make a generic Query, with parameters used for extract Feed-data, that will be easier for you..

/ Søren

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Soren,

 

That's fair, but it does not address the issue. I just created a new query and it still does not get the basic setup I was expecting feeds to do. For example, I'm filtering per shop in the feed settings and it's as good as nothing.

https://app.screencast.com/JkmMsny9K5Ucz

 

Is something wrong (bug) or am I still missing something?

 

/Nuno

 
Michael Knudsen
Reply

Hello Nuno,

- I think you have done everything correct, but you have a 'complicated' feed query in my eyes.  I always start with something like the image below, and then expand the feed query later.

Note: languageid and shopid are used in the query as parameters.

 

Br. Michael Knudsen

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Michael,

 

Yeah, that was it. I was starting from the Swift one, assuming "context" was coming from PIM's selection, when it fact comes from query string parameters. Thank you (and you too Soren).

 

/Nuno

 

You must be logged in to post in the forum