Am using Shopify Store front API to do the checkout , and ordering the products but couldn't able to find the API to create cart and follow the further process,
now am using external API to get the products which ever added to the cart and doing checkout process,but here am facing a problem i.e deleting the products once the user click on Checkout button instead of once they done with ordering them.
Can anybody help me in this to either create cart using API or any suggestions to delete the products once after the order is done.
I have tried this Cart API :
but am getting response as the below attached image:
Solved! Go to the solution
This is an accepted solution.
The Storefront API does not contain a cart object. Please build a cart UI in your app and create a checkout when the user is ready to checkout. Alternatively, if you are expecting low - mid traffic you can utilize the checkout object as a cart as it is able to be mutated - but this will be less performant for complex 'cart'
Vix | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
Thanks for the response,but is there way to create and manage cart in private app?
Currently am using external database services to create and update them but couldn't get the track after it goes checkout web-view in private application.
If the products are purchased ,I need to remove them from the cart also update cart and
if the products aren't purchased then they should not delete from the cart and user must be able to see them when he revisit the shopping cart.