Jump to content

Error Cart not updating modifications


Recommended Posts

Hi,

 

I'm using prestashop for the last weeks and in the last days an error appeared. Once you go to your cart, if you modify the quantities of the products you selected, the cart doesn't update and the following error appears... See attached.

 

Thanx

post-274044-0-46401500-1315213578_thumb.png

Link to comment
Share on other sites

Hi,

 

I have an identical problem. It came up after the Presta site was hacked.

 

My problem is not the +/- error but the login procedure for the guests.

After they have filled in the form this message appears:

 

Technical error:

Unable to save account

 

Details:

Error thrown: (object XMLHttpRequest)

Text status: Error

 

Does anyone has a solution for this problem?

It's quite urgent as well as I am losing customers!!

 

Many thanks

 

Peter

Link to comment
Share on other sites

It's hard to tell what is the exact cause of it, but in short, the page is expecting to get a certain Javascript response from an ajax file, and it is not getting it.

 

You can make the following change which should return some sort of error that is the cause of the failure.

 

You will need to find the JS file which makes the ajax call (search in files for "Unable to save account" or the error you have if it's a different one).

 

In this case it's in themes/xxxx/js/order-opc.js

 

You will need to comment one line and add another.

 

Change


$.ajax({
type: 'POST',
url: callingFile,
async: false,
cache: false,
dataType : "json",
data: 'ajax=true&'+params+'&token=' + static_token ,
success: function(jsonData)
{

 

To

 


$.ajax({
type: 'POST',
url: callingFile,
async: false,
cache: false,
//dataType : "json",
data: 'ajax=true&'+params+'&token=' + static_token ,
success: function(jsonData)
{
alert(jsonData);

 

This should display a JS alert with the error.

 

Make sure to turn on error reporting in /config/config.inc.php line #29.

Link to comment
Share on other sites

  • 11 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...