Woocommerce checkout page with dropdown list of affiliates

Hi
How can I create a drop down list of affiliates to be selected as a form field on the checkout page of Woocommerce?
We want to just ask the question “who told you about this?” and then have the drop down list of affiliates appear for them to select one. This is not related to the affiliate tracking, it is simply to ask them this question.
Is it possible to do this, and if so, how?
Thank you
Barnaby

One Response to Woocommerce checkout page with dropdown list of affiliates

  1. George February 6, 2017 at 6:11 pm #

    Hi Barnaby,

    After you hook in your preferred WooCommerce filter, ie woocommerce_checkout_fields filter, you can get all affiliates with affiliates_get_affiliates() and render them as an html select.
    This is roughly a solution and not the most elegant one, but that’s how i would start implementing it.

    Kind regards,
    George

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share