How can I display dynamic product lists in a Shopify collection template page?

How can I display dynamic product lists in a Shopify collection template page?

aamir_shop
Shopify Partner
2 0 0

Hi

An API will be returning list of product eg. productId, handle.. I want to show these products in a collection template page in shopify (should work for all shopify sites, creating a shopify app)

 

Possible solutions

- Design entire page, and render products - should involve lot of work, Since i want the page to be exactly like collection or search results page, dont want to design entire page

- Custom collection / Manual collection may not work, because on every page load it may b a different list of product which needs to b displayed.. so store may end up with 100s or 1000s of custom collections

- Get a common way to filter products which would work in most shopify sites eg /collections/all?flavour=vanilla&craft=gold...this will WORK as a short term solution but i dont know what is that common way

(i already know of /search?q= but this will not as it will search all fields in shopify)

- Any way to pass productIds and shopify shows the products in collection / search page ? (possible by creating any theme extensions in app)

 

Greatly appreciate if any one can help me with implementing 3rd or 4th solution above ?

Replies 0 (0)