无法在Magento 1.8.1中显示主页的产品 [英] Unable to display products of home page in Magento 1.8.1

查看:49
本文介绍了无法在Magento 1.8.1中显示主页的产品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在系统中成功安装 Magento 1.8.1 后.一切正常,但无法在主页上显示产品.正如在Magento网站上发布的那样,我使用管理界面 CMS>>修改了首页设计.页面>>主页>>设计.
Magento Wiki页面所示,在首页的第二行中添加了以下几行页面设计-

After successful installation of Magento 1.8.1 in a system. Everything works fine, but unable to display products on the home page. As posted on Magento website, I modified the home page design using admin interface CMS >> Pages >> Home Page >> Design.
As shown in the Magento Wiki page below lines were added in the second line of home page design -

{{block type="catalog/product_new" name="home.catalog.product.new" alias="product_homepage" template="catalog/product/new.phtml"}}   

仍然,产品未显示在主页上.
在主页上显示产品应该怎么做.
我正在使用Ubuntu 13.04服务器,使用MySQL 5.5数据库和使用SVN下载的Magento版本1.8.1

Still, the products are not displayed on home page.
What should be done to display the products on home page.
I'm using Ubuntu 13.04 server, with MySQL 5.5 database and Magento version 1.8.1 downloaded using SVN

推荐答案

在您的xml文件中添加此内容,然后从CMS>主页部分中删除该块

In your xml file add this and remove the block from CMS > Home Page section

<cms_index_index>
  <reference name="content">

  <block type="catalog/product_new" name="home.catalog.product.new"  as="product_homepage" template="catalog/product/new.phtml"/>

  </reference>
</cms_index_index>

这篇关于无法在Magento 1.8.1中显示主页的产品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆