title: Magento Add to Wishlist code not working
body: <p>I am using this snippet of code to add a wishlist to my product view </p>
  
  <pre><code>&lt;a onclick="setLocation('&lt;?php echo $this-&gt;getAddToWishlistUrl($_product) ?&gt;')"
   class="buttons-wish" title="&lt;?php echo $this-&gt;__('Add to Wishlist') ?&gt;"&gt;&lt;/a&gt;
  &lt;a onclick="setLocation('&lt;?php echo $this-&gt;getAddToCompareUrl($_product) ?&gt;')"
   class="buttons-compare" title="&lt;?php echo $this-&gt;__('Add to Compare') ?&gt;"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>But for some reason it is not working. </p>
  
  <p>I need help to resolve the issue </p>