Developer forum

Forum » Ecommerce - Standard features » Image patterns and default image missing in query

Image patterns and default image missing in query

Kasper Legarth
Reply

Hello.

We are building a shop for a customer where the products get pushed from their BC into DW pim and ecom.
We would like to show a product list, but only for products that have a default image (and we assume default image = images)

We have made som image patterns that set the add and sets default image to the products. But the customer should also have to option to add images manually later. With that in mind i made a query that make use of "Primary image from detail or image pattern"

It give me 0 products. But if i disable it i get a list of 71 product without default image, and 1 with default image (as expected).

Am i missing something?

failed-query.png

Replies

 
Kasper Legarth
Reply

This is the list if i disable the image part of the query, and the image pattern for that product

imagepatterndefault.png image_with_default.png
 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply
This post has been marked as an answer

Hello,

I've tried to check using the condition via simple PIM query and saw it works as expected (allows to output products follow the condition). My solution is based on admin is DW9.17.1 with Swift template set. Please, have a look at the video says about my check, note I use "And" inside root's subgroup in expression and list of products allows to check the scenario. So, first of all, ensure your expression valid and you use actual index.

BR, Oleg QA  

Votes for this answer: 1
 
Kasper Legarth
Reply

Hi Oleg.
I forget to get back to you. Indeed it was my query.
Thank you for your time.

 

You must be logged in to post in the forum