Jump to content

TECHNICAL ERROR: Unable to save update quantity in PrestaShop Cart


Recommended Posts

Hello everybody,

I have a big problem with my PrestaShop 1.4 and default theme. When I try to modify quantity in my cart I receive a technical error:

TECHNICAL ERROR: Unable to save update quantity
Details:
Error thrown: [object XMLHttpRequest]
Text status: parsererror

I tried all methods to resolve but the problem persists.

Can anyone help me ? I don't know why appear this error and I don't know how to resolve it :(

Please help me.

Thanks.

43074_fTHbYFQVez0B02bVLRkY_t

Link to comment
Share on other sites

  • 3 weeks later...

Hi,

Prestashop version 1.4
PhP 5.2
Mysql

I'm studing this problem and it happens on the following conditions:

1- The url starts with WWW.
2- Your cart is empty
3- You are at the home page
4- Ajax is activated
5- You press the "buy" button


When looking at the console (modzilla) it says something about cart.php...
Someone in a forum said its an enviromental problem.

I'm desesperatly seeking for a solution (a REAL solution)

Link to comment
Share on other sites

My solution: Open shopping-cart-product-line.tpl, find the line with link for up, down and delete quantity and remove the class and id tag. The images remain but it will work like a direct link without ajax, but you don't have to disable ajax for a rest of e-shop... In the rest of shop ajax works o.k....

Link to comment
Share on other sites

Unfortunately ircykk your fix seems to have broken some other aspect of the website, the googlecheckout and cheque modules no longer work when i add that code, they just return the customer to the my account page and no order is created. If i take your code out then those modules work ok so obviously some other issue to be resolved yet

Link to comment
Share on other sites

  • 2 weeks later...

Hey guys,
Check your SSL settings in your configuration database table.

This problem began for me when I started implementing my SSL setup.

My setup that caused the problem:
1. SSL was DISABLED
2. SSL URL was NOT THE SAME as my regular NON-SSL URL.

So...even though SSL was disabled, the fact that the SSL URL was different from my NON-SSL URL caused this error.

Hope that helps!

- Dasher

Link to comment
Share on other sites

  • 5 weeks later...
  • 1 month later...

goto peference <br/>seo/url<br/><br/><br/>leave the ssl blank<br/>and even try taking off friendly url<br/><br/>seems to fixed the problem for me.

 

Hi,

 

That fixt it for me thanks!

I didn't have to take off the friendly url.

 

:rolleyes:

Link to comment
Share on other sites

  • 2 weeks later...

I have the same problem when the customer tries to change the quantity up or down or delete the item from their cart. I'm still searching for a fix ... please post if you have found one.

 

Bug Tracker says it is a problem with v1.4.3 and will be fixed in the next release. Problem is, I am using v1.4.4.0 and it is not fixed.

 

Thanks

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...
  • 2 weeks later...

Hello All!

I found another possible solution

Find function jsonEncode in classes/Tools.php file :

public static function jsonEncode($data)
{


if (function_exists('json_encode'))
return json_encode($data);
else
{ include_once(_PS_TOOL_DIR_.'json/json.php'); $pearJson = new Services_JSON(); return $pearJson->encode($data); }
}

Replace:

public static function jsonEncode($data)
{
include_once(_PS_TOOL_DIR_.'json/json.php'); $pearJson = new Services_JSON(); return $pearJson->encode($data);
}

 

It works!

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...

add following line theme->prestashop->js-> cart-summary.js

 

 

in $(document).ready(function()

 

baseDir="yoursite.com"

 

Following upgrade to 1.4.7.0 was getting the previously reported error

"ERROR: unable to save update quantity"

 

Added

baseDir="www.yoursite.com"

as Vivek pointed out above, and all working fine now.

 

Had tried ALL other suggestions, but this is only one that worked for me.

 

Thank you Vivek Tripathi for helping with this.

Link to comment
Share on other sites

 

Following upgrade to 1.4.7.0 was getting the previously reported error

"ERROR: unable to save update quantity"

 

Added

baseDir="www.yoursite.com"

as Vivek pointed out above, and all working fine now.

 

Had tried ALL other suggestions, but this is only one that worked for me.

 

Thank you Vivek Tripathi for helping with this.

 

hello

citrusuk is even that was with this problem and have turned off the ssl and ssl but gave the solution to add the url like indicas works without problems.....

;) thank staff

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

ircykk you are a genius... thank you for posting this fix.... worked like a charm!!!

 

 

In file /themes/prestashop/js/cart-summary.js in line 30 after

$(document).ready(function()

{

set

baseDir = 'http://domain.pl/dir/';

 

Where 'http://domain.pl/dir/' i base url of your store :)

Link to comment
Share on other sites

  • 2 weeks later...

anyone found a fix for people who are using google checkout and experiencing this error? in my SEO area, i have the website and ssl address as the same thing. Both are set to mydomain.com.

 

Do I need to set both to https://mydomain.com or something? I don't know what to do. I have SSL and google checkout. No paypal, or any other payment modules.

Link to comment
Share on other sites

  • 2 weeks later...

Hello everybody,

 

I have a big problem with my PrestaShop 1.4 and default theme. When I try to modify quantity in my cart I receive a technical error:

 

TECHNICAL ERROR: Unable to save update quantity

Details:

Error thrown: [object XMLHttpRequest]

Text status: parsererror

 

I tried all methods to resolve but the problem persists.

 

Can anyone help me ? I don't know why appear this error and I don't know how to resolve it :(

 

Please help me.

 

Thanks.

 

When I try to increase or decrease the quanity of a product in the shopping cart, the following error message occurs:

 

TECHNICAL ERROR: unable to save update quantity

 

Details:

Error thrown: [object XMLHttpRequest]

Text status: error

 

None of the messages I've seen are helping me specifically. Please help me so that my store looks more professional. It's enhancementco.com. Thank you!

Link to comment
Share on other sites

I found the solution for the version 1.4.7 in the following page:

 

 

http://customprestsh...ssl-bug-in.html

 

 

Regards,

 

How do I use this code in the Prestashop template?

 

Also, when I try to increase or decrease the quanity of a product in the shopping cart, the following error message occurs:

 

TECHNICAL ERROR: unable to save update quantity

 

Details:

Error thrown: [object XMLHttpRequest]

Text status: error

 

None of the messages I've seen are helping me specifically. Please help me so that my store looks more professional. It's enhancementco.com. Thank you!

Link to comment
Share on other sites

  • 3 months later...
  • 5 months later...

Hi,

 

I have updated the cart-summary.js and set the domain name and ssl domain name to be the same, it works

 

BUT

now I notice that the overview of products/price on shopping cart page won't update, the shopping cart module does update.

 

Any one who knows how to fix this?

 

Thank you!!!

Edited by mrnutz (see edit history)
Link to comment
Share on other sites

  • 5 months later...

Ho una versione 1.4.7.0 e ho avuto lo stesso problema. Il carrello non si svuotava, nè si potevano sottrarre o eliminare i prodotti.

Ho risolto: Preferenze>Seo & Url e verificate di avere lo stesso identico nome (impostazione url) tra nome dominio e nome dominio ssl.

Stavo ammattendo e il problema era notevole.

Stefanops

Link to comment
Share on other sites

TECHNICAL ERROR: unable to save update quantity

Details:

Error thrown: [object Object]

Text status: parsererror

 

I receive the above error message when I try to increase the number of products in my cart past the set carrier weight ranges when the following settings are true:

 

Shipping > Carriers > Out-of-range behavior: Disable Carrier

 

If I change the out-of-range behavior setting to "Apply the cost of the highest defined range" then the error does not occur.

 

Anyone else reporting the same issue? Any ideas on how to fix this?

Link to comment
Share on other sites

  • 1 year later...

In file /themes/prestashop/js/cart-summary.js in line 30 after

$(document).ready(function(){
set
baseDir = 'http://domain.pl/dir/';
Where 'http://domain.pl/dir/' i base url of your store :)

 

 

This solution didn't worked for me... :(

 

Also, what is really weird is that this only happens sometimes, it doesn't happens all the times.

 

Can someone please give me a help on this one?

 

Website link is http://www.lenteseoculos.pt

 

Thanks a lot!

Edited by Pedro Lima (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

Hi 

 

I am having the same problem.. but only with a few products. When a customer tries to delete a product from his shopping cart this error is displayed

TECHNICAL ERROR: unable to save update quantity Details: Error thrown: [object Object] Text status: parsererror

 

Someone please help. I am using 1.6version

Link to comment
Share on other sites

  • 1 month later...

SOLVED (for me)

In my case, since I'm using Attribute Wizard Pro, I had to do some changes in some files of my theme in order for code to work properly.

After those changes, everything is now perfect! :D

 

EDIT: Those changes were done as per explanation inside Attribute Wizard Pro module.

Edited by Pedro Lima (see edit history)
Link to comment
Share on other sites

  • 9 months later...

I had the same problem (TECHNICAL ERROR: unable to save update quantity Details: Error thrown: [object Object] Text status: parsererror) and I manage to solve it by setting the Accented URL to NO in Preferences > SEO & URLs.

 

Friendly URL is set to YES, store domain and SSL domain are both the same (www.domain.tld), PrestaShop v.1.6.0.11  :D

 

 

Link to comment
Share on other sites

  • 5 weeks later...
  • 1 month later...

Hi,

 

I solved the issue by updating the url in the file "cart-summary.js".

 

To do so, follow the steps below:

 

  1. Backup the file "cart-summary.js" in the folder paths below, before modifying them.
    HTML —> Themes —> Default —> JS —> cart-summary.js
    HTML —> Themes —> Home —> JS —> cart-summary.js 
  2. Search for "basuri" in your file and replace the existing link to the following "baseUri + 'index.php?controller=cart-summary',"(without the quotation marks)
  3. Upload both files back to your server and test if it solved the issue (it definitely did in my case).
  4. If it did not solve the issue, you might want to upload the originals back to your server.
Cheers,
 
Demen
Edited by Demen Selcan (see edit history)
Link to comment
Share on other sites

  • 1 month later...
  • 9 months later...
I have the same problem in the PS 1.6.1.11:

TECHNICAL ERROR: unable to save the update quantity Details: Error thrown: [object Object] Text status: parsererror

 

 

@ini_set ('display_errors', 'off');

did not help

 

what to do?

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

Hello,

 

Same problem with 1.6.1.11, also with new customer want to create new account same error message.

TECHNICAL ERROR: unable to save update quantity Details: Error thrown: [object Object] Text status: parsererror

Any solution for fix this bug?

 

Thank you.

Link to comment
Share on other sites

Hello,

 

Same problem with 1.6.1.11, also with new customer want to create new account same error message.

TECHNICAL ERROR: unable to save update quantity Details: Error thrown: [object Object] Text status: parsererror

Any solution for fix this bug?

 

Thank you.

Link to comment
Share on other sites

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...