How to Replace the Add to Cart Button With External Affiliate Link in WooCommerce

| Last Updated: | In: WordPress, WordPress Plugin Reviews


A few days back I got a tutorial request from one of my website visitor asked this question by using the Request tutorial page, so that I am writing this tutorial. Below is the complete question he asked:

How to Replace the Add to Cart Button With External Affiliate Link in WooCommerce

Follow the below step to redirect the custom Affiliate link when clicked on Add to Cart button in WooCommerce product archive page & single product page.

Download the WooCommerce Improved External Products WordPress plugins from wordpress.org and install in your website.

If you have just started with WordPress, check out:

After the installation, click on Activate button to enable the plugin features and then follow the below instructions.

Step 1) Login to WordPress dashboard and navigate to the edit product page and move the product configuration section. Select the External/Affiliate product option from the Product Data drop-down menu.

Step 2) Now enter the Affiliate product link, button text, regular price, and sale price and update the product. Always try to use the relevant button text, so that your visitors will not confused. you can use like Buy on Amazon.

Now open the product from front-end website, you will see the button Buy on Amazon and it will be redirected to your external affiliate link.

Do you like & share this article with your friends, and don’t forget to follow us on Facebook and Twitter to learn cool WordPress tutorials.


About: Prem Tiwari

Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


You may also like:


, , , , ,