Support » WooCommerce » Product image link to external affiliate link

  • Hello,

    is it possible, that all woocommerce product links (image, title and „add to cart“ button) link to the external affiliate link and not to the product detail page? The add to cart button works, but the image and title redirect wrong. I think, anything is to change in this code (/woocommerce/content-product.php):

    <div <?php fl_woocommerce_version_check( '3.4.0' ) ? wc_product_class( $classes ) : post_class( $classes ); ?>>
    	<div class="col-inner">
    	<?php do_action( 'woocommerce_before_shop_loop_item' ); ?>
    	<div class="product-small box <?php echo flatsome_product_box_class(); ?>">
    		<div class="box-image">
    			<div class="<?php echo flatsome_product_box_image_class(); ?>">
    				<a href="<?php echo get_the_permalink(); ?>">
    						 * @hooked woocommerce_get_alt_product_thumbnail - 11
    						 * @hooked woocommerce_template_loop_product_thumbnail - 10
    						do_action( 'flatsome_woocommerce_shop_loop_images' );
Ansicht von 1 Antwort (von insgesamt 1)
  • Hallo @mknoefel und welcome to the German support forums.

    We try to keep these forums acessible to all people not speaking English. Therefore I kindly ask you to either rephrase your question in German or ask in the International support forums.

    Please also make sure, you read our FAQ before posting questions.

    Thank you. Best regards, Bego

Ansicht von 1 Antwort (von insgesamt 1)
  • Das Thema „Product image link to external affiliate link“ ist für neue Antworten geschlossen.