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.