【问题标题】:Magento category descriptionMagento 类别说明
【发布时间】:2015-01-22 06:33:53
【问题描述】:

我有以下问题。 上面我的分类描述(货前)。 我希望更改类别描述的位置。这应该在底部(货物之后)。 我正在使用magento commerce 1.9

【问题讨论】:

  • 你能添加一个屏幕截图,你到底想做什么?

标签: magento categories product magento-1.9


【解决方案1】:

你需要找到分类模板,这里应该在你的主题目录下;

app/design/frontend/XXX/YYY/template/catalog/category/view.phtml

其中 XXX YYY 是您正在使用的模板的目录。如果里面没有 view.phtml 文件,magento 会回退到这里的基础版本;

app/design/frontend/base/default/template/catalog/category/view.phtml

如果没有的话,我建议你把它复制到你的主题目录中。

现在,打开那个文件并找到它;

<?php if($_description=$this->getCurrentCategory()->getDescription()): ?>
<div class="category-description std">
    <?php echo $_helper->categoryAttribute($_category, $_description, 'description') ?>
</div>
<?php endif; ?>

只需将其移至文件末尾即可。

【讨论】:

    猜你喜欢
    • 2011-04-17
    • 1970-01-01
    • 2013-06-06
    • 2012-08-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多