Magento category description

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 07:16:17

问题


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.



来源:https://stackoverflow.com/questions/28082587/magento-category-description

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!