Jump to content

Deleting single product from cart removes all the product listing in cart : ajax delete


testmail1

Recommended Posts

Hi,

 

I am getting problem while deleting product in cart

 

suppose there are 10 items in a cart and if we delete 1 item from cart, it removes all the product from cart so displays EMPTY.  then after if we refresh that page, it displays 9 items in cart properly.

 

I am using vista theme.

 

when we delete products in demo of vista theme ajax json reponse is like

{"products":[{"id":3,"link":"http:.........

 

and if i delete product in my site using that vista theme, ajax json reponse is like

{"refresh":true}

 

and that's why ajax-cart.js removes all the products from cart.

 

Can any one please give me a solution. ?

 

:)

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