AJAX error when every page is displayed
Hi,
I'm running a recent download of v1.57c. I have configured some but not all settings I will need.
When I click on the cart icon I get a popup dialog with a 400 error whether anything is in the cart or not. If something IS in the cart the error popup is displayed on every page of the checkout process.
This popup is displayed before any of the page is displayed.
I'm hoping someone can point me in the right direction to fix this.
Thanks!
Here are the details:
URL submitted
https://<my domain>.com/abcdcart/ajax.php?act=ajaxPayment&method=setNoscriptCookie
Stack Trace
(anonymous) @ :1
send @ https://code.jquery.com/jquery-1.11.1.min.js:4
ajax @ https://code.jquery.com/jquery-1.11.1.min.js:4
(anonymous) @ https://<my domain>.com/abcdcart/index.php?main_page=shopping_cart:64
Deferred @ https://code.jquery.com/jquery-1.11.1.min.js:2
zcJS.ajax @ https://<my domain>.com/abcdcart/index.php?main_page=shopping_cart:37
(anonymous) @ https://<my domain>.com/abcdcart/index.php?main_page=shopping_cart:146
Re: AJAX error when every page is displayed
Quote:
Originally Posted by
AustinJim
Hi,
I'm running a recent download of v1.57c. I have configured some but not all settings I will need.
When I click on the cart icon I get a popup dialog with a 400 error whether anything is in the cart or not. If something IS in the cart the error popup is displayed on every page of the checkout process.
This popup is displayed before any of the page is displayed.
I'm hoping someone can point me in the right direction to fix this.
Thanks!
Here are the details:
URL submitted
https://<my domain>.com/abcdcart/ajax.php?act=ajaxPayment&method=setNoscriptCookie
Stack Trace
(anonymous) @ :1
send @
https://code.jquery.com/jquery-1.11.1.min.js:4
ajax @
https://code.jquery.com/jquery-1.11.1.min.js:4
(anonymous) @ https://<my domain>.com/abcdcart/index.php?main_page=shopping_cart:64
Deferred @
https://code.jquery.com/jquery-1.11.1.min.js:2
zcJS.ajax @ https://<my domain>.com/abcdcart/index.php?main_page=shopping_cart:37
(anonymous) @ https://<my domain>.com/abcdcart/index.php?main_page=shopping_cart:146
I'm not sure where you got that download, but if you downloaded, extracted the zip-file and installed Zen Cart, the default responsive_classic template makes use of jQuery 3.5.1 (1.11.1 is woefully old and buggy). There's also no mention use of the ajaxPayment module until a customer arrives at the checkout_payment page, nor is there any mention of a setNoScriptCookie method within that file (as delivered).
What template is in use and what other plugins have been installed?
I'll note also that the currently released version of Zen Cart is 1.5.7d, which has some fairly important corrections.