2016-12-04 105 views

回答

0

Category是默認Opencart的模塊之一,可以編輯其tpl文件來達到你想要什麼,所以打開此文件:

catalog/view/theme/default/template/extension/module/category.tpl 

刪除此節:

<?php if ($category['children']) { ?> 
    <?php foreach ($category['children'] as $child) { ?> 
    <?php if ($child['category_id'] == $child_id) { ?> 
    <a href="<?php echo $child['href']; ?>" class="list-group-item active">&nbsp;&nbsp;&nbsp;- <?php echo $child['name']; ?></a> 
    <?php } else { ?> 
    <a href="<?php echo $child['href']; ?>" class="list-group-item">&nbsp;&nbsp;&nbsp;- <?php echo $child['name']; ?></a> 
    <?php } ?> 
    <?php } ?> 
    <?php } ?> 

如果您使用不同的主題,仍然看到子類別,請嘗試編輯此文件:

catalog/view/theme/YOUR-THEME/template/extension/module/category.tpl 
相關問題