shoppingcart.js mini cart ajax bug
- put a cart widget in a page
- add product to cart
- when cart is empty all is ok
if you click add again
- expected behavior is "another product is added to cart"
- but instead no product is added, and if you refresh page you see that all product are removed from cart
reproduce live here: http://jacopo.cms.duemetri.com/product-categories/category-1
on first call is called
all is ok
on second call is called
inspecting the ajax call you see that the second product has missing product id
I have narrowed the problem to this row of shopping cart
shoppingcart.js, row 77: productId = addForm.data("productid"),
it is null....