Question: Is it possible to use the js-buy-sdk within a Shopify online store itself?
rvenugopal opened this issue · 1 comments
Hello
Is it possible to use this within a Shopify online store itself?
I am creating a third party widget to show highlighted/recommended products. This widget is to be embedded within a Shopify online store. When I click on a product (which has only 1 product variant), i want to add it to checkout / cart.
I ran the https://github.com/Shopify/storefront-api-examples/tree/master/react-js-buy and it works beautifully for my usecase. However, as I am creating a checkout
, it does not impact the current cart. So I get a webUrl for client.checkout.addLineItems
and when I goto that link, I can checkout
The webUrl is of the form https://somesite.myshopify.com/5128290393/checkouts/eb2ae53ff4e94bf6b73141ff73b5a96d?key=2ecfedf5e7ce91ba3326200e66138794
However, I am not able to add it to the current cart
https://somesite.myshopify.com/cart
is empty.
Please advise.
Thanks
Rao
Closing this issue as this can be done using the 'add.js' ap