How to stop sub-category images & text to show on main category pages?

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeHow to stop sub-category images & text to show on main category pages?

This topic has been marked as resolved.

Hi,

Can you pleas advise re how to stop sub-category images & text to show on main category pages?

Thnx

March 22, 2012 at 5:45 pm #7411

Hi,

1) To completely remove the subcategories listing within the content, you just need to remove this piece of code from the catalog/view/theme/shoppica/template/product/category.tpl:


<?php if ($categories): ?>
<div class="s_subcategories s_grid_view s_listing clearfix">
  <?php if ($this->config->get('shoppica_subcategories_style') == 'opencart'): ?>
  <ul class="s_list_1">
  <?php foreach ($categories as $category): ?>
    <li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></li>
  <?php endforeach; ?>
  </ul>
  <?php else: ?>
  <?php for ($i = 0; $i < sizeof($this->document->shoppica_subcategories); $i = $i + 6): ?>
    <?php for ($j = $i; $j < ($i + 6); $j++): ?>
    <?php if (isset($this->document->shoppica_subcategories[$j])): ?>
    <div class="s_subcategory">
      <a href="<?php echo $this->document->shoppica_subcategories[$j]['href']; ?>">
        <img src="<?php echo $this->document->shoppica_subcategories[$j]['thumb']; ?>" title="<?php echo $this->document->shoppica_subcategories[$j]['name']; ?>" alt="<?php echo $this->document->shoppica_subcategories[$j]['name']; ?>" />
      </a>
      <a href="<?php echo $this->document->shoppica_subcategories[$j]['href']; ?>"><?php echo $this->document->shoppica_subcategories[$j]['name']; ?></a>
    </div>
    <?php endif; ?>
    <?php endfor; ?>
    <div class="clear"></div>
  <?php endfor; ?>
  <?php endif; ?>
</div>
<?php endif; ?>

March 22, 2012 at 8:09 pm #7420

+1 for werepair

@werepair

Thanks for the help, mate :)

Best,
ThemeBurn team

March 23, 2012 at 12:26 pm #7436
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.