cancel
Showing results for 
Search instead for 
Did you mean: 

Homepage Products Block Add to Cart Leads to Empty Shopping Cart

Homepage Products Block Add to Cart Leads to Empty Shopping Cart

I have three custom module for best selling, new product and special product. When I click on add to cart button of these products, it will leads to empty cart page and showing message cart is empty. While in whole site add to cart working fine.

When I disable cache, I am able to add to cart from here. For this I have increased cookie lifetime, gave 777 permission to session folder but nothing helped me.I think this is due to cache.

1 REPLY

Re: Homepage Products Block Add to Cart Leads to Empty Shopping Cart

Hi,

I guess your issue can be related to form_key which Magento use to prevent CSRF. I guess it's cached with page but should be unique for every user.

You can disable it in admin(not recommended) or fix extension code.

 

Kind Regards,
Art Malkovich - Onilab