I was assign one product in more then one category.

In one of , i was added product in Wishlist .

I want to know that this product is come for which category.


Magento Wishlist models does not contain the category details at it's tables. So you need customization for your requirement and in this case you need to use core/session or catalog/session model to store data in session.

Maybe Mage::getSingleton('catalog/session')->getLastVisitedCategoryId() is an alternative solution for your case. I am not sure 100% about it.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.