Hi,
I would like to add the referral ID as a WooCommerce order “custom field” (metadata).
I found this action: “affiliates_referral” with the parameter “$referral_id”
How do you add the action to an order? In the functions.php file?
Hi,
I would like to add the referral ID as a WooCommerce order “custom field” (metadata).
I found this action: “affiliates_referral” with the parameter “$referral_id”
How do you add the action to an order? In the functions.php file?
Follow us! We post news and tutorials related to our tools, WordPress and WooCommerce on these platforms:
Yeah….thanks!!
Thanks! It works great, but the referral_id is shown as a number of 4 digits and I only have id’s from 1 to 40. How can you match the id’s? Is is possible to show the referral name?
Hi,
Referral hasn’t name, “referral” is similar to commission, I think you are talking about “affiliate”.
Please download the new version 1.1 where affiliate info is displayed too.
cheers
Hi,
You can use Affiliates Woocommerce Metabox plugin to display a metabox in the order page. If you need to display it somewhere else , you can use the code as a reference.
cheers