Ben 1.3 'de harika çalışıyor yazdığım bir Magento yardımcı sınıf var. Ancak, yeni bir kurulum 1.4 ve kategoriye göre filtreleme nedense çalışmaz üzerinde çalışıyoruz.
function __construct()
{
Mage::app();
$this->model = Mage::getModel('catalog/product');
$this->collection = $this->model->getCollection();
$this->collection->addAttributeToFilter('status', 1);//enabled
$this->collection->addAttributeToSelect('*');
}
function filterByCategoryID($catID)
{
$this->collection->addCategoryFilter(Mage::getModel('catalog/category')->load($catID));
}
Bu 1.4 çalışmıyor neden ben çözemiyorum. Başkasının bu sorunu haline gelmiştir?