I need help with integrating cart information between my custom website and Shopify. Here’s what I’m trying to accomplish:
I have a regular website built with HTML and PHP. When customers click “add to cart” on my site, they get redirected to Shopify where the item is added to their shopping cart. This part works fine.
The challenge is when users navigate back to my website from Shopify. I want to display their current cart status in the site header, showing something like “3 items | $245.00”. Basically, I need visitors on my external site to see what’s in their Shopify cart and have options to view cart or proceed to checkout.
I found some documentation about cart APIs but I’m not very experienced with JSON handling. Has anyone implemented something similar? Looking for guidance on the best approach to fetch and display cart data from Shopify on an external site.