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
1959 324 396

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!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!

View solution in original post

LitExtension
Shopify Partner
1959 324 396

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!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!

View solution in original post

Replies 5 (5)
LitExtension
Shopify Partner
1959 324 396

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!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!

View solution in original post

asfyb
New Member
12 0 0

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

LitExtension
Shopify Partner
1959 324 396

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!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!

View solution in original post

asfyb
New Member
12 0 0

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

LitExtension
Shopify Partner
1959 324 396

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!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!