Viewing 3 replies - 1 through 3 (of 3 total)
  • Yes, you can!

    Every product have the single shop page of the a real url!

    B

    (@ebloshkin)

    Were you able to find a solution?

    I’m looking for the same thing. My product catalog displays thumbnails. When hovering over the thumbnail image the “Buy it now” button appears, but the rest of the image outside the button links to the product page. I would like the entire thumbnail to link to the external affiliated site.

    B

    (@ebloshkin)

    Just found a solution. Don’t know if this is the best way to go about it.

    In plugins/woocommerce/templates/content-product.php

    Changed

    <a href="<?php the_permalink(); ?>">

    To
    <a href="<?php echo esc_url( $product->get_product_url() ) ?>">

    Hope this helps.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Woocommerce product image redirection’ is closed to new replies.