Coupon Generator for New Affiliates

The Coupon Generator for New Affiliates plugin is designed to streamline affiliate onboarding by automatically generating or assigning coupon codes to new affiliates when they join your program. This plugin is especially powerful when used alongside the Coupons feature in Post Affiliate Pro, as it enables you to provide each new affiliate with a unique promotional code, or assign them an existing one, right at signup.


How the Plugin Works

When a new affiliate signs up, the plugin can either generate a new coupon code for them or assign an existing code, depending on your configuration. The coupon code is tied to a specific coupon banner, and can be based on an affiliate’s details such as their username, email, or another chosen field.

This ensures that each affiliate can promote your products with a unique or pre-defined code from the start, making it easier to track their referrals and reward them for their performance.


Plugin Configuration

After enabling the plugin in your merchant panel, configure it by navigating to the plugin’s settings. The configuration panel provides several options:

  • Assign Rule – Choose how the plugin should assign coupons to new affiliates:
     
    • Generate new coupons for new affiliate: Always create a new coupon code for each new affiliate.
    • Assign existing coupons for new affiliate: Assign a coupon only if it already exists based on the chosen criteria; no new codes will be created.
    • Assign existing coupons or generate new for new affiliate: Try to assign an existing coupon first; if none is available, generate a new one.
  • Banner for coupon – Select the coupon banner where coupon codes will be created or searched for. (You can select up to two banners if you wish to assign/generate coupons in two different banners.)
  • User value – Choose the affiliate’s field to use as the coupon code (e.g., username, custom field, etc.). You can select up to two fields.
  • Days of validity – Define the number of days the coupon code will be valid for. Leave blank for unlimited duration.

How Coupon Assignment Works

When a new affiliate is registered, the plugin will:

  • Check the chosen assign rule and user field(s).
  • For each field/banner pair:
    • If assigning existing coupons, look for a coupon code matching the affiliate’s user value in the selected banner. If found and not already assigned, it will be allocated to the new affiliate.
    • If generating new coupons, create a new coupon in the selected banner, using the affiliate’s user value as the coupon code.
    • Validity dates are set according to your configuration.
  • Validation: If the same code is used in both selected fields/banners, or a duplicate exists, the plugin will show an error and require a unique value.

Use Cases & Best Practices

  • Provide each new affiliate with a personal, easy-to-remember coupon code upon signup.
  • Automate the process of coupon code assignment to avoid manual entry and errors.
  • Assign pre-created codes if you want to have full control over available coupons.
  • Combine with custom user fields to create unique code formats.

This approach makes onboarding new affiliates seamless and ensures that all coupon tracking is fully integrated with your affiliate reporting and commission structure.


Related Features and Tips

  • To learn more about coupon banners and code usage, see the Coupons overview.
  • For more advanced coupon management, explore the commission settings and reporting options available in your merchant panel.
  • If you want to restrict coupon use, set the “Days of validity” or use coupon banner limits.

Troubleshooting

  • Make sure your coupon banners are configured before enabling the plugin.
  • If a code is already in use, the plugin will prompt you to select a different value or field.
  • Check that the user field used for code generation (e.g., username) is always unique among affiliates.

Summary

The Coupon Generator for New Affiliates plugin enables you to automatically assign or generate unique coupon codes for each new affiliate, making it easier to track their performance and reward them for their promotional efforts. By configuring the assignment rules, selecting relevant banners, and choosing the right user fields, you can fully automate the coupon code onboarding process in Post Affiliate Pro.

×