Forum Replies Created
-
AuthorPosts
-
pozzz
Participantthanks for your reply, but really not.
I whould be able to show the affiliate link of each page, in the same page the user is.For example: i’ve created an affiliate bar on the top of each page of my site, visible only to affiliate users. I want to show the affiliate url in the bar and if affiliate user visits mysite.com/home founds in that bar the affiliate url to that page mysite.com/home/?wpam_id=1 , when he visits the shop page he founds in the bar mysite.com/shop/?wpam_id=1 etc
So my problem is, how to print the affiliate link in the place i want (maybe via shortcode?) and, how can i have the affiliate link of each page (this is optional, whould be very helpful also to have the possibility to show the basic affiliate url in the place i want).
Thanks
Marcellopozzz
Participantfound the problem, was my fault…
i’ve added the following code in the affiliate_cp_home.php to show affiliate url in the plugin homepage, but it occurs a duplication of visits. Removing that code visits are correct.
Is there a way to show the affiliate url in other pages (of the plugin and in other places in the wp theme)?
Thanks
here the code
<div class=”wrap” style=”background-color: #d4f0bf; padding: 30px;”>
<?php
if(!empty($alink_id)){
?>
<h3><?php _e(‘Your Affiliate Link Using Affiliate ID’, ‘affiliates-manager’) ?></h3><textarea class=”wpam-creative-code” rows=”1″><?php echo $alink_id; ?></textarea>
<h4>Invia questo link ai tuoi amici e guadagna ad ogni loro acquisto.</h4>
<?php
}
?></div><br>
-
AuthorPosts