Why is my wishlist limited to one item?

Im using magento 1.9 and im having a problem with wishlist, for some reason it will only allow me to have one item in my wishlist and when I add another item to the wishlist it replaces the item that was already in my wishlist, there is nothing in the config to restrict the wishlist item im a bit confusing why would it do that, any ideas?

+3


source to share


3 answers


Correct !!, after searching the internet to find a solution, I found a solution, you need to edit the file app/code/core/Mage/Wishlist/Model/Wishlist.php

to find:

public function getItemCollection()

      

and change

$this->_itemCollection =  Mage::getResourceModel('wishlist/item_collection')
                ->addWishlistFilter($this)
                ->addStoreFilter($this->getSharedStoreIds($currentWebsiteOnly))
                ->setVisibilityFilter();

      



to

$this->_itemCollection =  Mage::getResourceModel('wishlist/item_collection')
                ->addWishlistFilter($this)
                ->addStoreFilter($this->getSharedStoreIds($currentWebsiteOnly));

      

this worked for me and im using magento 1.9.0.1

the source for this fix is โ€‹โ€‹here: http://www.magentocommerce.com/boards/viewthread/291225/

+5


source


This is a non-standard feature, you don't need to edit your kernel code to fix it. Correction: you don't need to edit any code

I had the same problem and found that it was due to incorrect product imports and incorrect website accessibility settings.

Magento seems to have added a website filter to the wishlist collection to prevent items not available on the website from appearing in the customer's wishlist. It also seems that the items might not have a website => value that prevents the wishlist items from appearing (or just one item, the last one added).



How to fix this: Simply select your store products from the catalog page, select Update Attributes and click Submit. Select the Sites panel and check your site in the Add Product to Websites section. Re-index your data if necessary.

You can now add your items to your wishlist and see them all on your wishlist. This is the correct solution and does not remove the functionality of your Magento online store.

+3


source


Just re-index everything in: System> Index Management

0


source







All Articles