Product object inside a custom page template

Hi All,

We have a requirement where we need to show product details using the product id or product handle using the product object in a custom page template, not the product template. So, how we could achieve that.

Our shopify storefront: https://breaksofgod.com/

Any help is deeply appreciated.

Thanks

Not sure what level of web development you have but I’m going to assume you’ve got a fair level.
Take a look at this page as it talks using all_products Liquid. That’s useful to use in Liquid templates to grab product data using the handle, and saves looking at JavaScript methods.

https://www.shopify.com.au/partners/blog/89205510-how-to-use-all_products-in-a-shopify-theme

If you’re not sure how to use it, post back and we can look to guide you a little more.

Hi @devclouds ,

This is my recommendation for your question. Please create new product template in Templates/product.custom.liquid and each product choose templates suffix.

Please take a quick look at the screenshot here: https://prnt.sc/10mewni

Hope this helps!