How I can get the product page data to my custom page in Shopify?page other than the cart page

How I can get the product page data to my custom page in Shopify?page other than the cart page

aqeelzaffar
Shopify Partner
3 0 0

Hey, I want to show the product page data to my custom page (view quote) as when the customer wants to add the product in quote then this product will be shown in the view quote page but the cart page should not be effected and nor these quote products will be shown on the cart page. 

 

Replies 3 (3)

PaulNewton
Shopify Partner
7096 630 1484

Hi @aqeelzaffar  use the ajax api, or the section rendering api.

https://shopify.dev/api/ajax 

https://shopify.dev/api/section-rendering 

 

Beyond that you'd need to be much better at explaining what you mean by "product data" as that has MANY interpretations.

Do not leave it to ambiguity, specify ;  or provide inspectable examples or mockups and flows, etc.

https://www.catb.org/~esr/faqs/smart-questions.html 

 

Good Luck.

 

 

Contact [email protected] for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


aqeelzaffar
Shopify Partner
3 0 0

Product data means product name with their selected quantity and also the line items that has been added on the product page. Ajax API works but it will also add the product into the cart as well. I just want to show the added product on to the custom page. 

PaulNewton
Shopify Partner
7096 630 1484

The ajax api for the cart has a get endpoint.

For products themselves use their own endpoint /products/product-handle.json

 

Contact [email protected] for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org