Skip to content

Instantly share code, notes, and snippets.

@LinguistMB
Created September 15, 2017 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LinguistMB/b60a62043fc0b1d35c9991a2d0b16f93 to your computer and use it in GitHub Desktop.
Save LinguistMB/b60a62043fc0b1d35c9991a2d0b16f93 to your computer and use it in GitHub Desktop.
<?php
$_compareUrl = $this->helper('catalog/product_compare')->getAddUrl($_product);
?>
<?php if($_compareUrl) : ?>
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment