Tôi muốn hiển thị mô tả danh mục trong thanh bên trái của tôi thay vì cột chính.Magento: Làm cách nào để hiển thị mô tả danh mục ở thanh bên trái?
tôi thêm này để catalog.xml tôi:
<reference name="left">
<block type="catalog/navigation" name="catalog.leftnav" after="currency" template="catalog/navigation/left.phtml"/>
</reference>
<reference name="left">
<block type="catalog/navigation" name="catalog.catdes" after="catalog.leftnav" template="catalog/navigation/description.phtml"/>
</reference>
Và tôi tạo ra tập tin này: Danh mục/hướng/description.phtml
<?php
$_helper = $this->helper('catalog/output');
$_category = $this->getCurrentCategory();
?>
<?php if($_description=$this->getCurrentCategory()->getDescription()): ?>
<div class="category-description">
<?php echo $_helper->categoryAttribute($_category, $_description, 'description') ?>
</div>
Có kết quả không có gì cả. Tôi có thể làm gì sai?
bạn có xác định tên tài liệu tham khảo lại trong thẻ tham khảo có thể đây là nguyên nhân gây ra vấn đề – Mufaddal