Your cart is currently empty!
Affiliate link for each product
—
by
Hello
I have not found anywhere where you have to configure the links that you give for each affiliate.
When the affiliate talks about several of the products on my site on his channel, in the description he puts the links of each product, so we can see how many people clicked on the link, if they bought, which product has been the most clicked ……
But where to do that in the settings please?
Posted in Affiliates by Username
Comments
One response to “Affiliate link for each product”
Hi Thierry,
Welcome to our support forum and many thanks for using our affiliate marketing tools on your site.
The main tool for affiliates to generate affiliate links can be found in Affiliates Dashboard Overview.
– https://docs.itthinx.com/document/affiliates-pro/shortcodes/dashboard/affiliates_dashboard_overview/
When a logged in affiliate pastes a URL to the field, the affiliate link will be generated.
Another option you can use is by adding the affiliate URL to the single product template so that whenever the affiliate goes to a product page can find the affiliate URL for that product.
For example I used the hook woocommerce_before_single_product_summary in the following snippet:
add_action( 'woocommerce_before_single_product_summary', 'affiliate_url_before_single_product_summary' );
function affiliate_url_before_single_product_summary() {
$output = esc_html( 'Your affiliate link for this product is: ' );
$output .= do_shortcode( '[affiliates_url url="current"]' );
echo $output;
}
But of course you can use any of the hooks available in the single product template and the snippet should be added in the functions.php file of your child theme preferably or as a plugin.
Kind regards,
George