[SOLVED] OpenCart 4.1.0.0 - Cart Quantity Update Redirects to JSON Response Page Instead of Refreshing
Posted: Wed Feb 05, 2025 10:51 pm
When updating the quantity of a product in the shopping cart on OpenCart 4.1.0.0, instead of refreshing the cart page or updating it via AJAX, I am redirected to a plain-text JSON response page like this: /index.php?route=checkout/cart.edit&language=en-gb
Response: {"success":"Success: You have modified your shopping cart!"}
Normally, the cart should update dynamically without redirecting to a raw JSON response page.
This is on OC4.1.0.0 without any modifications or extensions installed, and the original theme.
Is this a known bug in OpenCart 4.1.0.0, or is something missing in the default JavaScript setup?
What’s the proper fix to ensure the cart updates dynamically instead of redirecting to a JSON response?
Any help would be greatly appreciated! Thanks in advance.
Response: {"success":"Success: You have modified your shopping cart!"}
Normally, the cart should update dynamically without redirecting to a raw JSON response page.
This is on OC4.1.0.0 without any modifications or extensions installed, and the original theme.
Is this a known bug in OpenCart 4.1.0.0, or is something missing in the default JavaScript setup?
What’s the proper fix to ensure the cart updates dynamically instead of redirecting to a JSON response?
Any help would be greatly appreciated! Thanks in advance.