网络营销电子商务研究中心

网络营销电子商务研究中心 (https://www.0058.net/index.php)
-   Magento (https://www.0058.net/forumdisplay.php?f=89)
-   -   how to get Category description after product listing (https://www.0058.net/showthread.php?t=5889)

Sallisaw 2016-10-02 07:33 PM

how to get Category description after product listing
 
The category description is already displayed in the category view page.
You just need to move elements around.
The template you need to modify is this:
app/design/frontend/{package}/{theme}/template/catalog/category/view.phtml.
take this code:
Code:

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

and move it at the bottom of the file. That's it.


All times are GMT +8. The time now is 11:07 AM.

Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.