cancel
Showing results for 
Search instead for 
Did you mean: 

Remove back link loop from product view

Remove back link loop from product view

I realized on my product pages I see a back link that just goes to the same page I am currently on. It always appears before options and after the price itself. The html is:

<div class="buttons-set">
    <p class="back-link"><a href="http://www.website.com/category/product.html"><small>&laquo; </small>Back to Main Product Info</a></p>
</div>

It would make sense if it was a page from a page but it it's literally a link to the page you are already on. My view.phtml code relating to is as follows:

					<p class="code-pro"><?php //echo $_product->getResource()->getAttribute('sku')->getFrontend()->getValue($_product); //or $sku = Mage::getModel('catalog/product')->load($_product->getId())->getSku(); ?></p>
				</div>
				<?php //echo $this->getReviewsSummaryHtml($_product, false, true)?>
				<?php echo $this->getTierPriceHtml() ?> 
				<?php echo $this->getChildHtml('extrahint') ?>

				
			 

                 <?php if (!$this->hasOptions()):?>
                <div class="product-options-bottom">
                    <div class="add-to-box add-to-cart">
                        <?php if($_product->isSaleable()): ?>
                            <?php echo $this->getChildHtml('addtocart') ?>
                            <?php if( $this->helper('wishlist')->isAllow() || $_compareUrl=$this->helper('catalog/product_compare')->getAddUrl($_product)): ?>
                                <span class="or"><?php //echo $this->__('OR') ?></span>
                            <?php endif; ?>
                        <?php endif; ?>
                        <?php echo $this->getChildHtml('addto') ?>
                    </div>
                    <?php echo $this->getChildHtml('extra_buttons') ?>
                </div>    
                <?php elseif (!$_product->isSaleable()): ?>
                <div class="product-options-bottom">
                    <div class="add-to-box add-to-cart">
                        <?php echo $this->getChildHtml('addto') ?>
                    </div>
                </div>    
                <?php endif; ?>

                

                <?php echo $this->getChildHtml('other');?>

                <?php if ($_product->isSaleable() && $this->hasOptions()):?>
                    <?php echo $this->getChildChildHtml('container1', '', true, true) ?>
                <?php endif;?>
                <?php if ($_product->isSaleable() && $this->hasOptions()):?>
                <?php echo $this->getChildChildHtml('container2', '', true, true) ?>
                <?php endif;?>

It would make sense if commenting out extrahint, other, or extra_buttons would remove this, but it is still there! Even on pages with no options, it's still there too, so if it is in getTierPriceHtml, where do I alter that? or is it from something entirely different??