find this file catalog > view > theme > YOUR THEME > template > product > product.tpl
find and remove (or comment in case you want to use them later) this code
here is a mod that should remove product code and availability
http://www.opencart.com/index.php?route ... %20setting
or you can remove them manually from the product file listed above
find this code for availability
and this code for product code
find and remove (or comment in case you want to use them later) this code
Code: Select all
<?php if ($tags) { ?>
<div class="tags"><b><?php echo $text_tags; ?></b>
<?php for ($i = 0; $i < count($tags); $i++) { ?>
<?php if ($i < (count($tags) - 1)) { ?>
<a href="<?php echo $tags[$i]['href']; ?>"><?php echo $tags[$i]['tag']; ?></a>,
<?php } else { ?>
<a href="<?php echo $tags[$i]['href']; ?>"><?php echo $tags[$i]['tag']; ?></a>
<?php } ?>
<?php } ?>
</div>
<?php } ?>
http://www.opencart.com/index.php?route ... %20setting
or you can remove them manually from the product file listed above
find this code for availability
Code: Select all
<span><?php echo $text_stock; ?></span> <?php echo $stock; ?></div>
Code: Select all
<span><?php echo $text_model; ?></span> <?php echo $model; ?><br />
“Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.”
- Henry Ford
After some searching and code editing, I'm still unable to hide tags. Probably a stupid noob mistake, but would appreciate any advice you can give! Here's the code I'm trying to comment out in the product.tpl file under the aforementioned folder structure:
I have tried using #, //, and /* */ to comment out the code as I really hate deleting stuff, but whatever I put in to comment - # or // - it just appears along with the tags. For example, one tag might be 8491 and I'll end up with ###8491. I also cleared the cache under the system menu and VQMod Manager but no luck. I'd like to use the product tags to make searching for manufacturer part numbers easy (and it does work great), but am trying to keep that line hidden.
BTW, I'm on v1.5.4.
Thanks!
Jason
Code: Select all
<?php } ?>
<?php if ($tags) { ?>
<div class="tags"><b><?php echo $text_tags; ?></b>
<?php for ($i = 0; $i < count($tags); $i++) { ?>
<?php if ($i < (count($tags) - 1)) { ?>
<a href="<?php echo $tags[$i]['href']; ?>"><?php echo $tags[$i]['tag']; ?></a>,
<?php } else { ?>
<a href="<?php echo $tags[$i]['href']; ?>"><?php echo $tags[$i]['tag']; ?></a>
<?php } ?>
<?php } ?>
</div>
<?php } ?>
<?php echo $content_bottom; ?></div>
<script type="text/javascript"><!--
$('.colorbox').colorbox({
overlayClose: true,
opacity: 0.5
});
BTW, I'm on v1.5.4.
Thanks!
Jason
try using <!-- and --> to comment it.
like this
like this
Code: Select all
<!--<?php if ($tags) { ?>
<div class="tags"><b><?php echo $text_tags; ?></b>
<?php for ($i = 0; $i < count($tags); $i++) { ?>
<?php if ($i < (count($tags) - 1)) { ?>
<a href="<?php echo $tags[$i]['href']; ?>"><?php echo $tags[$i]['tag']; ?></a>,
<?php } else { ?>
<a href="<?php echo $tags[$i]['href']; ?>"><?php echo $tags[$i]['tag']; ?></a>
<?php } ?>-->
“Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.”
- Henry Ford
SUCCESS - thank you very much! Now I can get my product search working correctly and not have a bunch of manufacturer part numbers showing up in product tags...this is perfect.
Thanks!
Jason
Thanks!
Jason
Who is online
Users browsing this forum: No registered users and 4 guests