Is the AJAX call providing the expected response? This looks more to me like a theme issue than an issue with the API, so I recommend testing by building a cart while viewing an unedited theme preview. If the cart works as expected in the other theme, this suggests there's an issue with your currently published theme template.
JB | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution