How to display featured product in home page using

2019-03-29 07:25发布

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 ?

3条回答
混吃等死
2楼-- · 2019-03-29 07:52

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

查看更多
Viruses.
3楼-- · 2019-03-29 08:08

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).

enter image description here

->. 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.

查看更多
Emotional °昔
4楼-- · 2019-03-29 08:09

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.

查看更多
登录 后发表回答