Magento Forum

   
A
 
beowax
Sr. Member
 
Total Posts:  94
Joined:  2007-12-17
Lille, France
 

Hello,

I tried to change statuses in my catalog, but products are always visible, even when i choose “Disabled” or one of my customed statuses.

I also tried to disabled my module (which add the statuses), but nothing changes… Does anybody get the same error ? eg/ Here, $salable is equal to 1, always.

public function isSalable()
    
{
        $salable 
$this->getData('is_salable');
        if (!
is_null($salable)) {
            
echo "Salable : ".$salable."<br/>";
            echo 
"getStatus : ".$this->getStatus()."<br/>";
            return 
$salable;
        
}
        
echo "getStatus : ".$this->getStatus()."<br/>";
        echo 
"STATUS_ENABLED : ".Mage_Catalog_Model_Product_Status::STATUS_ENABLED."<br/>";
        return 
$this->getStatus() == Mage_Catalog_Model_Product_Status::STATUS_ENABLED;
    
}

Regards,
Antoine

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

This attribute is local currently, meaning it has different values for different stores.

Make sure you have the correct store selected in dropdown in the left top corner of product edit page.

 
Magento Community Magento Community
Magento Community
Magento Community
 
beowax
Sr. Member
 
Total Posts:  94
Joined:  2007-12-17
Lille, France
 

Moshe : 1
Antoine : 0

Thanks Moshe, you were right. wink

Regards,
Antoine

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top