Jump to content

ajax-cart add function strange behaviour


Recommended Posts



I'm developing a simple module to be able to add multiple products from a table to the cart via ajax.


Right now, I have a jquery .each() iterator that process all the rows from a table. Each row contains one product.


Inside the .each() function I have this call:


// use the PS ajaxCart function, from ajax-cart.js
 idProduct, idCombination, addedFromProductPage, callerElement, quantity, wishlist


The problem is that the ajax-cart works randomly, and many times it adds the product to the cart but displays the following error as an alert:

TECHNICAL ERROR: unable to add the product.



Error thrown: [object Object]

Text status: error


The "random errors" appear more frequently when the table contains many products (>5).


Has someone faced a similar problem with the ajax-cart.add() function?

Edited by presty (see edit history)
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...