Post by 29palms » Sat Mar 26, 2016 1:11 am

I would remove the related products tab because I purchased a module from iSense.
I know that I have to change the code from product.tpl but exactly what line I have to edit?
:-\

New member

Posts

Joined
Thu Aug 25, 2011 4:22 am

Post by labeshops » Sat Mar 26, 2016 1:29 am

double check with isense. If you bought a module that is supposed to replace the built in related products tab, their mod should do it for you.

Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by 29palms » Sat Mar 26, 2016 4:24 am

labeshops wrote:double check with isense. If you bought a module that is supposed to replace the built in related products tab, their mod should do it for you.
It doesn't replace the original..iSense's extension is not the same

New member

Posts

Joined
Thu Aug 25, 2011 4:22 am

Post by viethemes » Sat Mar 26, 2016 11:09 pm

It seems that you are using a custom theme. Could you provide your site URL so we can take a look at it closer?

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


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm


Post by Iamdbat » Sun Jul 09, 2017 7:34 am

Find the product.tpl and edit it to comment out related products



<!--<div id="tab-related" class="tab-content">
<div class="box-product">
<?php foreach ($products as $product) { ?>
<div>
<?php if ($product['thumb']) { ?>
<div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
<?php } ?>
<div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
<?php if ($product['price']) { ?>
<div class="price">
<?php if (!$product['special']) { ?>
<?php echo $product['price']; ?>
<?php } else { ?>
<span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>
<?php } ?>
</div>
<?php } ?>
<?php if ($product['rating']) { ?>
<div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
<?php } ?>
<a onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button"><?php echo $button_cart; ?></a></div>
<?php } ?>
</div>
</div>-->

Active Member

Posts

Joined
Sat Jan 28, 2012 7:32 am

Post by simonpieman » Fri Jul 14, 2017 7:31 am

If you want to keep it really simple and avoid changing your files - you can probably just hide the tab using CSS.

#tab-related{display:none;}

there is an awesome free extension to load such css in your admin - > I think from viethemes (apologise if not - just search for 'css admin'

Go the All Blacks!


Active Member

Posts

Joined
Thu Jul 02, 2015 8:58 am
Location - NZ - Auckland
Who is online

Users browsing this forum: No registered users and 34 guests