Liquid, JavaScript, themes, sales channels
Can I get the product page data from the home page in shopify?
Solved! Go to the solution
This is an accepted solution.
Hi @asfyb,
You can create section and get it product in Customize. Refer https://shopify.dev/themes/architecture/settings/input-settings#product
Ex: https://github.com/Shopify/dawn/blob/main/sections/featured-product.liquid
Or simply you can use handle product:
{%- assign product = all_products[handle product] -%}
Hope it clear to you.
This is an accepted solution.
Hi @asfyb,
I saw you liked my answer. If it helped you solve your issue, please mark it as a solution. Thank you and good luck.
This is an accepted solution.
Hi @asfyb,
You can create section and get it product in Customize. Refer https://shopify.dev/themes/architecture/settings/input-settings#product
Ex: https://github.com/Shopify/dawn/blob/main/sections/featured-product.liquid
Or simply you can use handle product:
{%- assign product = all_products[handle product] -%}
Hope it clear to you.
Thank you for your reply, the problem has been solved.
This is an accepted solution.
Hi @asfyb,
I saw you liked my answer. If it helped you solve your issue, please mark it as a solution. Thank you and good luck.
Hello, how do I add a snippets file to a json file?
Hi @asfyb,
This is not possible, it is only declared with json structure, you cannot add Liquid code for it.
So if you want to add snippets file you need to change the json file to liquid.
Hope it clear to you.
Hi @asfyb ,
I'm not sure if this is exactly what you are asking but you can get a full sync of all your Shopify data using Sourcetable's Shopify integration. This includes homepage data and product page data.
The data will stay synced so you can build reports that stay up to date (which I'm guessing is your use case here).
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024