Not able to add the product to wishlist as a guest in Magento 1.9.3.2
Steps To Reproduce:
Navigate to any category or product details page.
Click the Add to Wishlist button, the user get's redirected to the login page.
After logging in the user is redirected to the customer account Wishlist page but the product is not added.
Note:
If I comment out the below line then it will work.
Mage::getSingleton('core/session')->renewFormKey(); in core/Mage/Customer/Model/Session.php
Solved! Go to Solution.
Hello @umar
seems like magento 1 bug
you can do like this
remove formkey validation while add to wishlist
public function addAction() { //comment it /* if (!$this->_validateFormKey()) { return $this->_redirect('*/*'); } */ $this->_addItemToWishList(); }
Hello @umar
seems like magento 1 bug
you can do like this
remove formkey validation while add to wishlist
public function addAction() { //comment it /* if (!$this->_validateFormKey()) { return $this->_redirect('*/*'); } */ $this->_addItemToWishList(); }
Hi @Sunil Patel,
Thanks for the solution, It worked for me.
Thanks for Saving My uncountable hours.