Hi,
Can you pleas advise re how to stop sub-category images & text to show on main category pages?
Thnx
|
|
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; ?>
|
|
+1 for werepair
@werepair
Thanks for the help, mate
Best,
ThemeBurn team
|
|