如何在magento中创建自定义YMM?

如何在magento中创建自定义YMM?,magento,Magento,我们正在开发一个汽车零部件在线商店 因此,我们需要根据年份、品牌和型号属性筛选产品。为此,我创建自定义模块块代码如下。。。 } 通过上述功能,我可以获得可配置的产品属性选项和值,取决于这些属性选择,我想在主页上显示产品?我该怎么办?>提前谢谢 public function getYears(){ $attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', 'year'); $o

我们正在开发一个汽车零部件在线商店 因此,我们需要根据年份、品牌和型号属性筛选产品。为此,我创建自定义模块块代码如下。。。 }

通过上述功能,我可以获得可配置的产品属性选项和值,取决于这些属性选择,我想在主页上显示产品?我该怎么办?>提前谢谢

 public function getYears(){

    $attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', 'year'); 
    $option = $attribute->getSource()->getAllOptions(true);
    return  $option;
}
 public function getMake(){

     $attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', 'make'); 
     $option = $attribute->getSource()->getAllOptions(true);
     return     $option;
    }

 public function getModel(){
     $attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', 'model'); 
     $option = $attribute->getSource()->getAllOptions(true);
     return $option;    
}