0

我安装了 Magento 的 html5 移动主题作为手机的附加主题。我的主/默认主题非常适合响应式设计,但不适用于移动设备,因此为移动设备添加了 html5 主题。我需要知道如何从我的类别页面顶部删除我的静态块。非常感谢任何帮助。我希望静态块保留在网站上,但不在移动版本上 - 否则我会简单地删除它们,因此问题。我想知道是否可以使用 layout.xml 文件来实现这一点。如果您能提供帮助,请具体说明。

4

2 回答 2

1
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.
于 2013-12-05T10:20:25.373 回答
0

跟着这些步骤:

复制: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-10-18T12:51:15.110 回答