Magento - 创建Feature Products
Create featured product using custom attribute, show in home page:
1st step:- create a attribute featured with yes/no property from Catalog Input Type for Store Owner dropdown
include in attribute set
assign one product featured “yes” from manage products
2nd step: Cms pages -> home page content area write
3rd step: create custom module and block file “app/code/local/FeaturedProduct/Catalog/Block/Product/Featured.php”
5th step: add this code under global tag in “app/etc/local.xml”<blocks> <catalog> <rewrite> <product_featured>FeaturedProduct_Catalog_Block_Product_Featured</product_featured> </rewrite> </catalog></blocks>
Done.