I need to add compare and wishlist link in to the 1column.phtml
file. I added this code in this page but nothing show!!!
app/design/frontend/default/celebrity/template/page/1column.phtml
For compare link:
<?php $_product = $this->getProduct(); ?>
<?php if ($_compareUrl = $this->getAddToCompareUrl($_product)): ?>
<span><a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></span>
<?php endif; ?>
For wishlist link:
<?php if ($this->helper('wishlist')->isAllow()) : ?>
<a href="<?php echo $this->getAddToWishlistUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a>
<?php endif; ?>
How can I fix this problem?