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:

Integrating Google reCAPTCHA v3 in HTML Form with PHP

  What is Google reCAPTCHA v3? Google reCAPTCHA is a free service that helps protect websites from spam and abuse. reCAPTCHA v3 is the lates...