Hi,
First of all, I’m not sure if this is the right place for feedback/suggestions, if there is better please please let me know.
I’m experienced shopify developer working with themes and creating custom apps for few years already. I’m missing one feature - rendering liquid with dynamic product listings.
Example use cases:
-
Wishlist - product ids/handles are stored into local browser storage. Let’s say I have 15 products in wishlist and I also have custom view for product wishlist grid item. However rendering the whole list would take me 15 requests to shopify store.
-
Filters - I have some custom logic behind filters which is hard to accomplish in liquid. So, lets say I have some custom app which returns me product ids/handles for specific filters. Now I have 100 products and to render them I need to make 100 request to shopify (!).
What I’m suggesting is something similar to how recommendations work having own recommendations liquid object with products. We could to the same and introduce let’s say dynamic_products liquid object. Which could be filled up by adding parameter to url.
Eg. calling ?sections=wishlist&dynamic_products=123456789,987654321 would result in wishlist section render with filled up dynamic_products liquid object which would contain products of ids 123456789 and 987654321.
{%- for card_product in dynamic_products -%}
{%- render 'card-product' -%}
{%- endfor -%}
This would be great improvement and would solve many problems about dynamic product lists which could be now rendered server-side.