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?