Skip to content

Instantly share code, notes, and snippets.

@themepaint
Created February 3, 2016 08:14
Show Gist options
  • Save themepaint/8d3d7beb46b4c4f8c6da to your computer and use it in GitHub Desktop.
Save themepaint/8d3d7beb46b4c4f8c6da to your computer and use it in GitHub Desktop.
Woocommerce Product Compare withYIT
<div class="woocommerce product compare-button">
<?php
echo '<a href="' . get_permalink( $product->id ) . '&amp;action=yith-woocompare-add-product&amp;id=' . $product->id . '" class="compare button" data-product_id="' . $product->id . '"><i class="fa fa-refresh"></i></a>';
?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment