本文介绍了Magento类别描述的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have the following problem.My category description above (before the goods).I wish to change the location of the category description. This should be at the bottom (after the goods).I am using magento commerce 1.9

推荐答案

您需要找到类别模板,该模板应位于您的主题目录中;

You need to find the category template, which should be in your theme directory here;

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

其中XXX YYY是您正在使用的模板的目录.如果其中没有view.phtml文件,则magento将在此处退回到基本版本;

Where XXX YYY is the directory of the template you are using. If there is no view.phtml file in there, magento will fall back to the base version here;

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

我建议您将其复制到主题目录中.

I suggest you copy it to your theme directory if it wasnt there.

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

Now, open that file and find this;

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

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

And simply move it to the end of the file.

这篇关于Magento类别描述的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 11:11