Magento Forum

Page 1 of 2
Wishlist shows online 1 product
 
steefking
Member
 
Total Posts:  46
Joined:  2012-01-22
 

My wishlist shows only one product. And when i put a new product to the wishlist the old one is replaced for the new product.

So where could be the problem for this?

Steven

 
Magento Community Magento Community
Magento Community
Magento Community
 
Siggi_Schmitz
Enthusiast
 
Avatar
Total Posts:  811
Joined:  2011-07-03
 

crazy...which magento version do you use?

 
Magento Community Magento Community
Magento Community
Magento Community
 
steefking
Member
 
Total Posts:  46
Joined:  2012-01-22
 

Hi,

I use Magento 1.7.

Steven

 
Magento Community Magento Community
Magento Community
Magento Community
 
steefking
Member
 
Total Posts:  46
Joined:  2012-01-22
 

Any one a suggestion?

 
Magento Community Magento Community
Magento Community
Magento Community
 
steefking
Member
 
Total Posts:  46
Joined:  2012-01-22
 

Well then i have to disable the function because it doesn’t work.

But does someone know how?

 
Magento Community Magento Community
Magento Community
Magento Community
 
steefking
Member
 
Total Posts:  46
Joined:  2012-01-22
 

Sorry fixt it. A module gave some problems with the shop.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Ackley
Jr. Member
 
Total Posts:  28
Joined:  2012-08-24
 

According to me your requirement is possible in only change in the module.if you change the module that will give the effecting errors is comes. If also use a multiple wishlist to select the more than one product.for this use a IToris Installer and is a Extension for Magento CE 1.4.x, 1.5.x, 1.6.x, 1.7.x

 
Magento Community Magento Community
Magento Community
Magento Community
 
MarieG19
Jr. Member
 
Total Posts:  1
Joined:  2012-11-12
 

The same thing is happening to my shop: could you post how you fixed the problem?

 
Magento Community Magento Community
Magento Community
Magento Community
 
JesseT
Jr. Member
 
Avatar
Total Posts:  5
Joined:  2010-11-14
Miami Beach, Fl
 

Same issue here. Not a lot of information on the web about it. If anyone has found the solution, I’d be happy to hear it. Otherwise, I’ll post when I find out why this is happening.

 
Magento Community Magento Community
Magento Community
Magento Community
 
JesseT
Jr. Member
 
Avatar
Total Posts:  5
Joined:  2010-11-14
Miami Beach, Fl
 

A few things:

This is an out of the box Magento install and the first store we did with 1.7.x. We are currently using 1.7.0.2. The only thing changed was our theme.

To verify that the theme wasn’t the issue Ive tried both modern and default themes, the problem persists.

All products tested are default attribute set, simple, in stock, managed stock and since this is a staging site set to 9999 inventory.

If you try to add the same product to the wishlist twice, it will actually remove the product.

[EDIT]

There’s a catch. I was showing this issue to a coworker, and he found a product that I was able to add to the wishlist multiple times and it worked properly.

I cloned the product, and was able to add products correctly.

I created a new product and copied one of the products that refuses to add multiple times and it also works perfectly. It seems there are issues with the products. Will look into this and reply with what I find out.

 
Magento Community Magento Community
Magento Community
Magento Community
 
dork99
Jr. Member
 
Total Posts:  9
Joined:  2009-10-15
 

Hi Jesse,

Found the cause/solution yet? Having the same problem here..driving me nuts

 
Magento Community Magento Community
Magento Community
Magento Community
 
mpcriderM
Jr. Member
 
Total Posts:  1
Joined:  2012-07-20
 

It would be great to hear from someone around this. We are experiencing it as well on ver. 1.7.1

 
Magento Community Magento Community
Magento Community
Magento Community
 
chrisg4242
Jr. Member
 
Total Posts:  2
Joined:  2012-05-01
 

The Problem...
We run Magento with 1 website and 2 stores. Customers could only add 1 item to their wishlist where the item was only available in only one of the stores. If the item they were adding was available in both stores they could add as many as they want. To stop items appearing in a store we set the item’s visibility to “Not Visible Individually” in the store that we don’t want it to appear in.

The Fix (Sort of)...
In app/code/core/Mage/Wishlist/Model/Wishlist.php

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 removes the visibility filter from the items added to the wishlist and so all items added to the wishlist will display.

NOTE...
This is a work around and not a full solution. The problem is that the visibility filter doesn’t seem to work properly - and so this fix just removes the filter. The following should be considered (although I haven’t tested it).

1. Items added to the wishlist from any store will show regardless of which store the customer is in.
2. If an item’s visibility is set to not visible and the item has already been added to the wishlist then it will still appear

 
Magento Community Magento Community
Magento Community
Magento Community
 
pkhun
Jr. Member
 
Total Posts:  1
Joined:  2010-08-20
 

I had the same issue.

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

How to fix it : Simply select your store products on catalog page, select ‘Update Attributes’ action and click on submit.
Select Websites panel and check your website in ‘Add Product To Websites’ block.
Reindex your data if necessary.

You can now add your products to your wishlist and see all of them in your wishlist.

 
Magento Community Magento Community
Magento Community
Magento Community
 
ironing_room
Jr. Member
 
Total Posts:  2
Joined:  2013-10-02
 

The bug is in Mage_Wishlist_Model_Resource_Item_Collection::_assignProducts. The store filter on the product collection works for only one store. Since it iterates over a list of stores in the website, it will return products for only the last store. Wishlist items for products not in that last store are removed from the collection. This is why wishlist items disappear. My solution was to merge the results of several product collections, one for each store.

Change

$productCollection Mage::getModel('catalog/product')->getCollection();
        foreach (
$storeIds as $id{
            $productCollection
->addStoreFilter($id);
        
}

        
if ($this->_productVisible{
            Mage
::getSingleton('catalog/product_visibility')->addVisibleInSiteFilterToCollection($productCollection);
        
}

        $productCollection
->addPriceData()
            ->
addTaxPercents()
            ->
addIdFilter($this->_productIds)
            ->
addAttributeToSelect($attributes)
            ->
addOptionsToResult()
            ->
addUrlRewrite();

        if (
$this->_productSalable{
            $productCollection 
Mage::helper('adminhtml/sales')->applySalableProductTypesFilter($productCollection);
        
}
to
if (empty($storeIds)) {
            $productCollection 
$this->_getProducts($attributes);
        
else {
            $productCollection 
$productCollection = new Varien_Data_Collection;
            foreach (
$storeIds as $storeId{
                
foreach ($this->_getProducts($attributes$storeId) as $product{
                    
try {
                        $productCollection
->addItem($product);
                    
catch (Exception $e{} // ignore id conflicts. the product's first store takes precedence
                
}
                $productCollection
->setIsLoaded(true);
            
}
        }
and then add a new _getProducts method
protected function _getProducts($attributes$storeId null{
        $productCollection 
Mage::getModel('catalog/product')->getCollection();

        if (
$storeId{
            $productCollection
->addStoreFilter($storeId);
        
}

        
if ($this->_productVisible{
            Mage
::getSingleton('catalog/product_visibility')->addVisibleInSiteFilterToCollection($productCollection);
        
}

        $productCollection
->addPriceData()
            ->
addTaxPercents()
            ->
addIdFilter($this->_productIds)
            ->
addAttributeToSelect($attributes)
            ->
addOptionsToResult()
            ->
addUrlRewrite();

        if (
$this->_productSalable{
            $productCollection 
Mage::helper('adminhtml/sales')->applySalableProductTypesFilter($productCollection);
        
}

        
return $productCollection;
    
}

You’ll need to add a setIsLoaded method to Varien_Collection.

Many thanks to chrisg4242 for recommending removing the visibility filter. That led to the above solution.

The above comment is based on 1.12.0.2 Enterprise Edition (corresponding to 1.7.0.2 CE).

 
Magento Community Magento Community
Magento Community
Magento Community
 
ironing_room
Jr. Member
 
Total Posts:  2
Joined:  2013-10-02
 

I added a ticket: http://www.magentocommerce.com/bug-tracking/issue?issue=15884

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 1 of 2