liquid icon indicating copy to clipboard operation
liquid copied to clipboard

Can not use where filter on images

Open stijns96 opened this issue 2 years ago • 0 comments

Since the image objects automatically outputs the handle by default, it's impossible to use the where filter on it.

{%- assign image = product.images | where: 'id', 123 -%}

This will result in storing the handle as a string in my assign, instead of storing it as an object.

I actually want to have the image object as an object by default and not as handle. Or we could do something like image.object for example.

stijns96 avatar Nov 09 '23 07:11 stijns96