2

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.

1 Answer 1

2

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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