Discussion
Shopify
Implementing 'Add to Cart' via AJAX. Getting 422 Unprocessable Entity.
David Performance
0 reputation
1 week ago
131 views
3 replies
Been struggling with this for a bit. Any suggestions?
Question: Implementing 'Add to Cart' via AJAX. Getting 422 Unprocessable Entity.
Question: Implementing 'Add to Cart' via AJAX. Getting 422 Unprocessable Entity.
3 Replies
Chris Theme
· 1 week ago
The product might be out of stock. Check `variant.available` before sending the request.
Jake Project
· 1 week ago
You are likely sending the wrong `id`. Ensure you are sending the `variant_id`, not the `product_id`.
You must be logged in to reply.
Log In to ReplyRelated Discussions
Liquid Error: 'Memory limits exceeded' in collection.liquid loop. How to optimize?
3 replies
1 week ago
How do I access Metafields in a .js file for my custom section?
3 replies
2 weeks ago
Why is 'img_url' filter deprecation warning showing up in my theme editor?
3 replies
2 weeks ago
How to filter a collection by tag using URL parameters without an app?
3 replies
5 days ago
How to show different content for logged-in customers vs guests?
3 replies
4 days ago