Add Last Name to Coupon Code

Is there a way to add the last name of an Affiliate to the auto coupon code using a token like {affiliate_LastName}. I need a way other then random number, and the ID to auto assign them to Affiliates.

5 Responses to Add Last Name to Coupon Code

  1. Victor January 25, 2017 at 1:45 pm #

    Antonio How would i use the woocommerce_coupon_code title in the Affiliates Coupons auto generated coupons?

    • antonio January 26, 2017 at 10:34 am #

      Hi Victor,
      We are working on an update that improve the filter. Right now it’s not easy to add the affiliate data in the title.
      We hope to have it available next week.
      Thanks,
      Antonio B.

      • Victor January 26, 2017 at 1:24 pm #

        would you please reply to this post when its ready with a link to the documentation or the short code needed, that would be really helpful.

        thank you so much for the update

        • antonio January 27, 2017 at 10:05 am #

          sure, thanks !!

  2. antonio January 25, 2017 at 7:48 am #

    Hi Victor,
    You have available the {random,x}, {affiliate_id} and {count} tokens. If you need to add extra tokens, you can use the ‘woocommerce_coupon_code’ filter (this filter has only one param, the coupon title).
    Kind Regards,
    Antonio B.

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