Pages>Homepage.StartingfromMagento1.4.0youhavetheabilitytouseMagentowidgetstodisp" />

欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

magento 首頁(yè)添加最新產(chǎn)品 Display new product

系統(tǒng) 2231 0

方法一 : (widget)

?

This tutorial will show you how to add the new products block to the home page. All modifications would be done in Magento admin panel. ?Open the admin panel, go to CMS> Pages>Home page .

?

Starting from Magento 1.4.0 you have the ability to use Magento widgets to display different content block within your pages. When you are in CMS> Pages>Home page, switch to the Content tab.

?

  1. At the top you can see the Insert Widget button. Click it.

    magento 首頁(yè)添加最新產(chǎn)品 Display new products on the home page

  2. In the Widget type select box choose Catalog New Products List .
  3. Then you can select the number of the displayed products and the product listing template.
  4. When you are done click Insert Widget button.
  5. Click Save button at the top after the page customization is complete.

?

?

We recommend clear and disable the Magento cache when editing the static pages.

?

Feel free to check the detailed video tutorial below:

Magento. Display new products on the home page (widget)

?

?

來(lái)源: http://www.templatemonster.com/help/magento-display-new-products-on-the-home-page-widget.html


方法二 : (block)

?

This tutorial will show you how to display new products on the home page in Magento using the Magento block.

  • Open Magento admin panel
  • Go to CMS>Pages>Home page
  • Switch to the content tab
  • Insert the following code:

?

    {{block  type="catalog/product_new" column_count="6"  products_count="12" name="home.catalog.product.new"  alias="product_homepage"  template="catalog/product/list.phtml"}}
  
?

Where:

  • column_count="6" – number of the product columns
  • products_count="12" – number of the displayed products

?

來(lái)源: http://www.templatemonster.com/help/magento-display-new-products-on-the-home-page-block.html

?

方法三 : (XML)

?

This tutorial will show you how to display new products on the home page using the XML layout update.

?

Open Magento admin panel. Go to CMS>Pages>Home Page. ? Switch to the Design tab. Into the Layout Update XML window paste the following code:

?

magento 首頁(yè)添加最新產(chǎn)品 Display new products on the home page

?

?

1. First of all create the content reference:

          <reference  name="content">
</reference>
        
?

This will let you put the blocks into the home page content area.

?

2. Insert the new products block:

          <block  type="catalog/product_new" name="product_new"  template="catalog/product/list.phtml">
</block>
        
?

The block code should be inserted into the reference tag.

?

3. Set the number of the product columns in the new products listing:

          <action  method="setColumnCount"><column_count>6</column_count></action>
        
?

The action code should be inserted into the block ?tag.

?

4. Set the amount of products displayed in the new products block:

          <action  method="setProductsCount"><count>0</count></action>
        
?

As a result your XML code should look like this:

          <reference  name="content">
<block  type="catalog/product_new" name="product_new"  template="catalog/product/list.phtml">
<action  method="setColumnCount"><column_count>6</column_count></action>
<action  method="setProductsCount"><count>0</count></action>
</block>
</reference>
        
?

In case you want to display the new products from the specific category use the following action:

          <action  method="setCategoryId"><category_id>10</category_id></action>
        
?

Make sure you set the correct category ID value. You can get the category ID from the admin panel> Catalog>Manage categories .

?

We recommend clear and disable the Magento cache when editing the static pages.

?

來(lái)源: http://www.templatemonster.com/help/magento-display-new-products-on-the-home-page-xml.html

?

magento 首頁(yè)添加最新產(chǎn)品 Display new products on the home page


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號(hào)聯(lián)系: 360901061

您的支持是博主寫(xiě)作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對(duì)您有幫助就好】

您的支持是博主寫(xiě)作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長(zhǎng)會(huì)非常 感謝您的哦!!!

發(fā)表我的評(píng)論
最新評(píng)論 總共0條評(píng)論
主站蜘蛛池模板: 欧美a区| 精品欧美在线 | 亚洲综合在线另类色区奇米 | 91久久久久久久一区二区 | 精品欧美一区二区三区精品久久 | 久热中文字幕在线精品首页 | 亚洲色图日韩 | 天堂综合网久久 | 久久人| 成人国产精品 | 欧美aaa | 国产精品你懂的在线播放 | 亚洲精品一区在线观看 | 久草论坛 | 成人亚洲区无码偷拍 | 偷拍在线观看视频在线观看地址 | 亚洲在线一区二区 | 噜噜狠狠 | 日本无码免费久久久精品 | 日本在线观看免费视频 | 国产精品福利在线观看秒播 | 色综合久久手机在线 | 免费一级欧美片片线观看 | 欧美午夜视频 | 色黄小说| 国产精品久久久久久久久久 | 久久综合影院 | 精品国产一区二区三区成人影院 | 老汉色影院 | A片扒开双腿猛进入免费观看 | 亚洲偷图色综合色就色 | www.ouchn.com | 日本精品不卡 | 午夜激情视频在线观看 | 午夜影院福利社 | 日韩专区中文字幕 | 91短视频版在线观看免费大全 | 国产高清无专砖区2021 | 久久综合一个色综合网 | 色婷亚洲 | 久久久精品午夜免费不卡 |