May 31, 2015

OpenCart remove category image




To remove OR hide category image and just show the category description please follow below:

First Go: catalog\view\theme\default\template\product\category.tpl

Note: Here 'default' you can change as per your theme folder name.

In category.tpl file find the below code:

<table style="padding-bottom:10px;">
  <tr>
    <?php if ($thumb) { ?>
       <td><img src="<?php echo $thumb; ?>" alt="<?php echo $heading_title; ?>" /></td>    
    <?php } ?>
    <?php if ($description) { ?>
       <td><?php echo $description; ?></td>
    <?php } ?>
  </tr>
</table>



And then replace with below new code:

<table style="padding-bottom:10px;">
  <tr>
    <?php if ($description) { ?>
       <td><?php echo $description; ?></td>
    <?php } ?>
  </tr>
</table>




Enjoy!

2 comments:

The Future of Technology: Emerging Trends to Watch in 2025

Introduction As we navigate through 2025, the technological landscape continues to evolve at an unprecedented pace. Innovations that once se...