Solved

Can I access product page data from the home page in Shopify?

asfyb
New Member
12 0 0

Can I get the product page data from the home page in shopify?

Accepted Solutions (2)

LitExtension
Shopify Partner
4860 1002 1145

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.

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify

View solution in original post

LitExtension
Shopify Partner
4860 1002 1145

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.

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify

View solution in original post

Replies 6 (6)

LitExtension
Shopify Partner
4860 1002 1145

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.

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
asfyb
New Member
12 0 0

Thank you for your reply, the problem has been solved.

LitExtension
Shopify Partner
4860 1002 1145

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.

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
asfyb
New Member
12 0 0

Hello, how do I add a snippets file to a json file?

LitExtension
Shopify Partner
4860 1002 1145

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.

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify

mceoin
New Member
9 0 0

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).