How can i create custom YMM in magento? -


we developing online store car auto parts
need filter product on base of year,make , model attribute.
create custom module
modules block code goes here...

 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;     } 

}


via above function configurable products attributes option , values depend on basis of these attribute selection want show products on home page?
how can do?
>thanks in advance..


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -