Post by lemonie » Sun Dec 04, 2011 6:39 pm

Hi

I have added the related products to the right hand column and would like to remove the related products tab at the bottom of the product page. I searched but the answer was out of date.
Last edited by lemonie on Wed Dec 07, 2011 2:48 am, edited 1 time in total.

New member

Posts

Joined
Fri Nov 18, 2011 8:28 pm

Post by uksitebuilder » Tue Dec 06, 2011 6:36 pm

what is your OC version ?

ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by lemonie » Wed Dec 07, 2011 12:32 am

Hi

I am using the latest version v1.5.1.3

Thanks

New member

Posts

Joined
Fri Nov 18, 2011 8:28 pm

Post by uksitebuilder » Wed Dec 07, 2011 12:46 am

edit: catalog/view/theme/default/template/product/product.tpl

find & delete

Code: Select all

    <?php if ($products) { ?>
    <a href="#tab-related"><?php echo $tab_related; ?> (<?php echo count($products); ?>)</a>
    <?php } ?>
find & delete

Code: Select all

  <?php if ($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"><span><?php echo $button_cart; ?></span></a></div>
      <?php } ?>
    </div>
  </div>
  <?php } ?>

ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by lemonie » Wed Dec 07, 2011 2:49 am

Fantastic .. worked a charm!! Thanks

New member

Posts

Joined
Fri Nov 18, 2011 8:28 pm
Who is online

Users browsing this forum: No registered users and 16 guests