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
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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
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.