Hi! On my website I have some categories that are simply categories to arrange other categories. For example, one category is "Dresses" and within this category are the different categories for the different types of dresses. Is there a way to remove "There are no products to list in this category." ONLY from select categories?
In essence, I have some categories that do not have products (yet) where I want the message to stay; and other categories are not suppose to have products so I do not want the message within these categories.
Thanks in advance!
In essence, I have some categories that do not have products (yet) where I want the message to stay; and other categories are not suppose to have products so I do not want the message within these categories.
Thanks in advance!
You can edit the file catalog\view\theme\default\template\product\category.tpl, findpla1829 wrote:Hi! On my website I have some categories that are simply categories to arrange other categories. For example, one category is "Dresses" and within this category are the different categories for the different types of dresses. Is there a way to remove "There are no products to list in this category." ONLY from select categories?
In essence, I have some categories that do not have products (yet) where I want the message to stay; and other categories are not suppose to have products so I do not want the message within these categories.
Thanks in advance!
Code: Select all
<p><?php echo $text_empty; ?></p>
Code: Select all
<?php $ids = explode('_', $_GET['path']); if (in_array(end($ids), array(1, 2, 3))) { ?>
<p><?php echo $text_empty; ?></p>
<?php } ?>
http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension
Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme
Extra Positions PRO, Custom JavaScript, Custom CSS and others
Hi,
I am having the same problem and can't seem to remove this message and the continue button. I have two categories that I use as a showcase with a photo gallery. They don't contain products, so I want to delete this message. My open cart version is 2.0.1.1.
This is how the code looked first.
Using your alteration gave this result:
Category id 60 and 33 are actually the ones where I want to hide the message. Since I have hundreds of categories with products, it's not doable to do it the other way around. But whatever I try there, the message is not removed.
Even when I try removing it all together, like this, does nothing:
Any idea what I might be doing wrong?
I am having the same problem and can't seem to remove this message and the continue button. I have two categories that I use as a showcase with a photo gallery. They don't contain products, so I want to delete this message. My open cart version is 2.0.1.1.
This is how the code looked first.
Code: Select all
<?php if (!$categories && !$products) { ?>
<p><?php echo $text_empty; ?></p>
<div class="buttons">
<div class="pull-right"><a href="<?php echo $continue; ?>" class="btn btn-primary"><?php echo $button_continue; ?></a></div>
</div>
<?php } ?>
Code: Select all
<?php if (!$categories && !$products) { ?>
<?php $ids = explode('_', $_GET['path']); if (in_array(end($ids), array(60, 33))) { ?>
<p><?php echo $text_empty; ?></p>
<?php } ?>
<div class="buttons">
<div class="pull-right"><a href="<?php echo $continue; ?>" class="btn btn-primary"><?php echo $button_continue; ?></a></div>
</div>
<?php } ?>
Even when I try removing it all together, like this, does nothing:
Code: Select all
<?php if (!$categories && !$products) { ?>
<div class="buttons">
<div class="pull-right"><a href="<?php echo $continue; ?>" class="btn btn-primary"><?php echo $button_continue; ?></a></div>
</div>
<?php } ?>
Category A contains B and C sub-category, B contains D item. You want to show D item when you choose cat-A or subcat-B, you must set D item belong to both cat-A and subcat-B. Edit Product >> choose Tab Links >>in Categories text box, you choose both cat-A and subcat-B. Finish.
Who is online
Users browsing this forum: No registered users and 8 guests