title: Woocommerce replace add to cart url to link to product page
body: <p>I am using this shortcode to display products [product_category category="extras" orderby="date"].</p>
  
  <p>Variable products show "select options" and single products show "add to cart". I was able to change text of both to say "View Product".</p>
  
  <p>The problem now is that I need to change the url of those that used to say "add to cart", because they don't link to the product page but to "Add to the cart".</p>
  
  <p>I know I can edit the woocommerce template, but I would need this as a function to be added to function.php</p>
  
  <p>I don't need any button involved, just replacing the url.</p>
  
  <p>So again purpose:
  Replace/redirect "Add to Cart" url to link to product page (only in loop, obviously not in product page).</p>
  
  <p>Can someone help?</p>