Commits

Anonymous committed a629e42

Fix a bug in ajax removing from cart. Closes #807

Comments (0)

Files changed (1)

satchmo/trunk/satchmo/apps/satchmo_store/shop/views/cart.py

         # note we have to convert Decimals to strings, since simplejson doesn't know about Decimals
         if cart and cartitem:
             data['cart_total'] = str(cart.total)
-            data['cart_count'] = str(round_decimal(tempCart.numItems, 2)) 
+            data['cart_count'] = str(round_decimal(cart.numItems, 2)) 
             data['item_id'] = cartitem.id
 
         return render_to_response(template, {'json': JSONEncoder().encode(data)})