Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hey guys,

    I am having a similar problem with trying to get my affiliate link (woo commerce affiliate/external product) to display as a button.

    The linking function won’t work when I amend the php file to insert a button.

    Below is the raw code I tried to amend:

    ?>
    <?php do_action('woocommerce_before_add_to_cart_button'); ?>
    
    <p class="cart"><a href="<?php echo $product_url; ?>" rel="nofollow" class="single_add_to_cart_button button alt" target="_blank"><?php echo apply_filters('single_add_to_cart_text', $button_text, 'external'); ?></a></p>
    
    <?php do_action('woocommerce_after_add_to_cart_button'); ?>

    Cheers

Viewing 1 replies (of 1 total)