<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>Share Button in Product Page (Affiliate Link)

Replies: 1

Hi, I have bought pro version of this plugin. But I didnt find any add-ons that allow us to add share affiliate link at single product page. I think this is basic features of an affiliate program.

I have tried this and it didnt work:

function add_afflink(){
if ( is_user_logged_in() && slicewp_is_user_affiliate() ){
$aflink = get_permalink();
$referal_link = slicewp_get_affiliate_url( $affiliate_id, $aflink );
echo '<input type="text" style="display:block;width:100%" value="' . $referal_link . '"/>';
}
add_action( 'woocommerce_after_add_to_cart_button', 'add_afflink', 99);

Could we get this features as an add-on in the future, please?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer