Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Feature Request › Affiliate link tool on the same product
- This topic has 6 replies, 2 voices, and was last updated 4 years, 7 months ago by WCFM Forum.
- AuthorPosts
- February 25, 2020 at 9:37 am #108631alexandermartineznmParticipant
Hello, since the tool to convert the affiliate links is in another panel, and you have to do a process to convert the links to affiliate links.
you could make the tool directly on the product page and with a button you can convert the link where you are in an affiliate link.
as is amazon. The process is currently tedious to convert the links. when you can enable a field for the affiliated user where it contains the button to convert the link you simply have to give the Copy link button and that’s it.
Also that the link is customized or shorter, by User ID or NickName. So remembering one of this we can create a link without using the tool.
also the option that occupies referral link once the page has already been accessed to avoid conflict that a customer does not want to buy because it recognizes that it is an affiliate link.
- February 29, 2020 at 7:25 am #109278alexandermartineznmParticipant
What I am trying to say is that the affiliate panel, to convert the products into an affiliate link, this tool must be directly on the product page, and be enabled with the registered users.
- March 4, 2020 at 12:43 pm #109832WCFM ForumMember
Hi,
Understand your concept, we will add this prohibition for affiliate users in coming version.
Thank You
- March 22, 2020 at 7:50 am #112599alexandermartineznmParticipant
Hello, by the time this update will be ready I am really waiting for this list to open my multi suppliers virtual store
- March 10, 2020 at 9:58 pm #111000alexandermartineznmParticipant
by the time this update is ready so that the tool to convert products to affiliate link is directly in the products. as Amazon does at the top (<head>)
- March 21, 2020 at 9:19 am #112486alexandermartineznmParticipant
Hello you can put the URL Generator at the top <Head>on the product page.
So we can generally generalthe affiliate link of that product easier
Note URL Builder will only be enabled in the <head>for users with affiliate role.
I’m waiting for this update, you can include it urgently please.
- April 3, 2020 at 9:36 am #114979WCFM ForumMember
Hi,
Add this code to your site. This will show affiliate link under each single product page –
add_action( 'woocommerce_single_product_summary', function() { global $WCFM, $WCFMmp, $product; if( wcfm_is_affiliate() ) { if( method_exists( $product, 'get_id' ) ) { $product_id = $product->get_id(); $affiliate_id = get_current_user_id(); $affiliate_url = wcfm_get_affiliate_url( $affiliate_id, get_permalink( $product_id ) ); ?> <div class="wcfm-clearfix"></div> <div class="store_info_parallal" style="margin-right: 10px;"> <i class="wcfmfa fa-link" aria-hidden="true"></i> <span class="afcode" data-aurl="<?php echo $affiliate_url; ?>">Affiliate URL</span> </div> <div class="wcfm-clearfix"></div> <script> jQuery(document).ready(function($) { $code_index = '999'; $('span.afcode').each(function() { $(this).append(' <i style="color:#00897b;cursor:pointer;" data-ref="'+$code_index+'" title="Copy" class="fa fa-copy"></i>'); $(this).append('<textarea style="border:0!important;height:0px;opacity:0!important" id="'+$code_index+'">'+$(this).data('aurl')+'</textarea>'); $(this).find('i').click(function() { var copyText = document.getElementById($(this).data('ref')); copyText.select(); document.execCommand("copy"); }); $code_index++; }); }); </script> <?php } } }, 6 );
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/Thank You
- AuthorPosts
- You must be logged in to reply to this topic.