我已经安装了Magento的html5移动主题作为一个额外的主题仅为手机。我的主/默认主题是伟大的响应设计,但不是移动,因此增加了html5主题的手机。我需要知道如何从我的类别页面顶部删除我的静态块。任何帮助都非常感谢。我希望静态块保持在站点上,而不是在移动版本上--否则我会简单地删除它们,这就是问题所在。我想知道是否可以使用一个layout.xml文件来实现这一点。如果你能帮忙的话,请具体一点。
发布于 2013-10-18 12:51:15
遵循以下步骤:
副本:app\design\frontend\SITE-PACKAGE\SITE-YOUR_CUSTOM_TEMPLATE\template\catalog\category\view.phtml
粘贴:app\design\frontend\MOBILE-PACKAGE\MOBILE-YOUR_CUSTOM_TEMPLATE\template\catalog\category\view.phtml
现在,开放移动版view.phtml
删除以下代码:
<?php if($this->isContentMode()): ?>
<?php echo $this->getCmsBlockHtml() ?>
<?php elseif($this->isMixedMode()): ?>
<?php echo $this->getCmsBlockHtml() ?>
<?php echo $this->getProductListHtml() ?>
<?php else: ?>
<?php echo $this->getProductListHtml() ?>
<?php endif; ?>添加:
<?php echo $this->getProductListHtml() ?>希望它能帮到你!
发布于 2013-12-05 10:20:25
Using template path hints you can easily find your template path files.
Login to admin pannel and under
- System -> Configuration
- Change the “Configuration Scope” to “Default Store View” (or whichever store view you want to see template paths on)
- Under Advanced in the left menu click Developer
- Click “Debug” to expand that section
- Change “Template Path Hints” to "Yes"
- Click Save Configuration
Now to refresh the front-end and see all the locations of the template files so you can easily modify the correct ones.
Hope it will helps you.https://stackoverflow.com/questions/19447802
复制相似问题