无法在Magento 1.8.1中显示主页的产品

编程入门 行业动态 更新时间:2024-10-27 00:28:05
本文介绍了无法在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中显示主页的产品

本文发布于:2023-11-01 22:54:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1550645.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:产品   主页   Magento

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!