Jump to content
StandDuPp

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

Share this post


Link to post
Share on other sites

I've tried to change my theme and now will try to replace my modules folder.

I don't understand from where that error comes:(

Share this post


Link to post
Share on other sites

I resolved this error by disable AJAX Cart from modules-> Block Cart, but now same error appear in "Leave a message" in order.

Share this post


Link to post
Share on other sites

I did the same but doesn't look like a solution:(

I hope they will have a look to the bug tracker!

Share this post


Link to post
Share on other sites

Hi!

I have the same problem...

Did you resolve the problem?

Thank you

Share this post


Link to post
Share on other sites

Ok

thank you

But it's weird cause in localhost it's ok no problem...

Bye

Share this post


Link to post
Share on other sites

I guess it's because of cookies or something like that.

Anyway it's well annoying.

Share this post


Link to post
Share on other sites

Hi,

Sorry they dont say how to fix it.

You have to wait the new version...

Share this post


Link to post
Share on other sites

Hi!

I don't have this problem anymore.

I resolved another problem and know everything is cool!

It's not a prestashop 1.4 issue.

Have a nice day

Sorry i cannot help more...

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
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....

Share this post


Link to post
Share on other sites

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 :)

  • Like 2

Share this post


Link to post
Share on other sites

thanks ircykk your fix seems to have sorted the issue, I only spotted the problem while doing a test transaction so it may have been causing issues on my site for a number of weeks since i upgraded to 1.4 last month

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

@Dasher3000: Thank you very much for your answer!

I left http:// in front of my SSL URL. That was my problem.

Cheers.

Share this post


Link to post
Share on other sites

goto peference
seo/url


leave the ssl blank
and even try taking off friendly url

seems to fixed the problem for me.

  • Like 2

Share this post


Link to post
Share on other sites

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:

Share this post


Link to post
Share on other sites

thanks a lot. i use only paypal not googl checkout and it seems that is ok

Share this post


Link to post
Share on other sites

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.

 

Thanks

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

This may be a fix for you too:

 

In Back Office, in the Preferences tab, select SEO & URLs; at the bottom of the page, make sure your site url and ssl url are the same ... this seems to have worked for me.

Share this post


Link to post
Share on other sites

I experienced the same issue...after trying every settings in performance or whatever I tried what you guys tried (SSL / non SSL equal) and it now works...THANKS!!

Share this post


Link to post
Share on other sites

In Back Office, in the Preferences tab, select SEO & URLs; at the bottom of the page, make sure your site url and ssl url are the same ... this seems to have worked for me.

 

THANKS!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
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!

Share this post


Link to post
Share on other sites

Get the file with filezilla for example go to

/classes/FrontController.php on line #87

Then you can edit the code.

Share this post


Link to post
Share on other sites

actually 1.4.7.2 did not solved this problem. And now the statistics.php is loaded unsecure.

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

i haved same error when I installed a carrier module, after uninstalling everthing was ok.

Share this post


Link to post
Share on other sites

I actually upgraded Prestashop to v1.6.0.13 and it seems it solved that problem. At least I've made already many tests and had no problems, and customers stopped complaining.

Share this post


Link to post
Share on other sites

Actually, problem came back again and it only happens with some products, not with all products.

 

Some products I can delete from shopping cart, others not! :(

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

I also still with same problem and it's very frustrating that nobody cares to solve this...

Share this post


Link to post
Share on other sites

For me it was fixed by setting Friendly URL to NO

 

You'll find it from PREFERENCES - SEO & URLs

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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

 

 

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

We were not able to delete item from cart. We just disable error reporting in below file and it resolved. PS 1.6

 

public_html/config/defines.inc.php

 

change

 

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

 

to

 

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More