FROM CACHE - en_header

product page data。

Solved
asfyb
New Member
12 0 0

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

Accepted Solutions (2)

Accepted Solutions
LitExtension
Shopify Partner
4419 900 930

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 - #1 Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Get your 1-month Shopify free trial from LitExtension. CONTACT US!
Are you looking for a solution to migrate to Shopify? Try our FREE DEMO now!

View solution in original post

LitExtension
Shopify Partner
4419 900 930

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 - #1 Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Get your 1-month Shopify free trial from LitExtension. CONTACT US!
Are you looking for a solution to migrate to Shopify? Try our FREE DEMO now!

View solution in original post

Replies 6 (6)
LitExtension
Shopify Partner
4419 900 930

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 - #1 Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Get your 1-month Shopify free trial from LitExtension. CONTACT US!
Are you looking for a solution to migrate to Shopify? Try our FREE DEMO now!
asfyb
New Member
12 0 0

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

LitExtension
Shopify Partner
4419 900 930

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 - #1 Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Get your 1-month Shopify free trial from LitExtension. CONTACT US!
Are you looking for a solution to migrate to Shopify? Try our FREE DEMO now!
asfyb
New Member
12 0 0

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

LitExtension
Shopify Partner
4419 900 930

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 - #1 Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Get your 1-month Shopify free trial from LitExtension. CONTACT US!
Are you looking for a solution to migrate to Shopify? Try our FREE DEMO now!
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).