How to setup a Woocommerce Affiliate Program
WooCommerce is an ecommerce shopping cart solution launched in 2011 for small to large-sized online businesses using WordPress website. WooCommerce quickly became popular for its simplicity and customization. Best of all, it’s open-source based product. It does not charge transaction fees; neither does it regulate bandwidth or storage because it’s a self-hosted solution. Hundreds of extensions available to fulfil your all requirements. More than 30,954,070 downloads, WooCommerce powers 41% of all eCommerce sites, so rest assured you're in a good company.
Follow the steps below to set it up.
Step 1. Go to your OSI Affiliate Software admin page and click on Set Up Software.
Step 2. Click on Link Software to My Store.
Step 3. Select Woocommerce from the drop-down menu and copy the code.
Step 4. Open this file /wp-content/plugins/woocommerce/templates/checkout/thankyou.php at your installed WordPress and paste copied code after this line (it would be near line # 74).
<?php do_action( 'woocommerce_thankyou', $order->get_id() ); ?>