How to display featured product in home page using magento?

99封情书 提交于 2019-12-05 00:02:13

问题


I want to add 'featured' attribute set while adding product (dropdown (yes/no)).
On selecting 'yes' the respective products should be shown in home page.
Is it possible ?


回答1:


Please go through the below link to show the featured products in Magento Home page.

http://www.magentocommerce.com/boards/viewthread/84852/

How Display Featured Products - Magentocommerce

It would be helpful to you.




回答2:


Adding featured products in Magento is very easy. Just follow the steps mentioned below.

->. Log in to your Magento Admin end.

->. Go to Catalog > Manage Categories.

->. Select Root Category of your choice. By default only one Root category is available
named “Root Catalog”.

->. Now click on Add Subcategory button on left and name new subcategory “Featured” (this name can be anything of your choice).

->. If you do not want to load category on store front-end then Is Active to No.

->If you do not want your category to be appeared in navigation set Include in Navigation Menu to No.

-> After creating the category you will see the category name and ID on the page title. Note down the ID of your category which is mentioned after ID: label in Category title on page. See the image below for reference.

-> Add few Products in newly created Featured category.

-> Now go to CMS > Pages > Edit Home page > Content.

-> Add following line in the content

{{block type="catalog/product_list" column_count="4" category_id="5" template="catalog/product/list.phtml"}}

-> This line will create a Magento Block on home page with featured products list

-> Change th category_id="5" in the block to your own category’s ID

-> Save the page by clicking on Save Page button and go to your home page to see your featured products listing.




回答3:


follow below tutorial to learn how to Create new "Featured" attribute and show Featured products with the help of

<?=$this->getFeaturedProductHtml()?>

https://magento2.atlassian.net/wiki/display/m1wiki/How+to+Create+a+Featured+Product



来源:https://stackoverflow.com/questions/13098059/how-to-display-featured-product-in-home-page-using-magento

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!