List of Products on Home Page

Hi,

Like collection.products gives me a list of products on current collection page and product gives me a product on current product page. how do I get list of products on home page and recomended products on product page?

Regards,
Gaurav Agarwal

You will need to base it off an collection, for an example via a collection picker in the customizer.

For recommendations look at this: Product recommendations

So my request is more of how to find out the collection being used on a home page. Similar how to find out the list of products on a product page. I am trying to do this in the app embed liquid file for use in my app.

I’m not exactly sure what you mean. There can be multiple collections used on the home page (Index). That’s based off the theme code and dynamic setup in the customizer.

So when creating an theme app extension, if a user is on collections page, collection.products gives you the list of products current rendered on the front page. So my question is largely how do I do that on the homepage? Is there a way via liquid to find the current live collection on homepage?