首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

Magento - 创造Feature Products

2012-08-31 
Magento - 创建Feature ProductsCreate featured product using custom attribute, show in home page:1st

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.

热点排行