2011-11-18 4 views

Répondre

0

Cela a fonctionné pour moi: Modifier votre produit en vedette .phtml fichier

 

//change from 
$category_id = "25"; // category_id for "Featured Products" 
$_productCollection = Mage::getResourceModel('catalog/product_collection') 
    ->addAttributeToSelect(array('name', 'price', 'small_image'), 'inner') 
    ->addCategoryFilter(Mage::getModel('catalog/category')->load($category_id)); 

//to 

$category_id = "25"; // category_id for "Featured Products" 
$_productCollection = Mage::getResourceModel('catalog/product_collection') 
    ->addAttributeToSelect(array('name', 'small_image'), 'inner') 
    ->addCategoryFilter(Mage::getModel('catalog/category')->load($category_id)); 

Hope it helps.

+0

Merci beaucoup pour votre aide .. Impossible d'utiliser votre solution car mon thème est un peu différent. Je l'ai pensé – Akshay

Questions connexes