Assign to Groups by Ordered Products

The Assign to Groups by Ordered Products plugin for Post Affiliate Pro (PAP) automatically assigns affiliates (or customers) to specific commission groups based on the products they order. This is useful for segmenting affiliates according to product sales and applying different commission structures or benefits.

Key Features

  • Automatically assigns affiliates or customers to specific commission groups in any campaign, including private campaigns, based on product IDs found in tracked orders.
  • Supports up to 10 mapping rules, each mapping a set of product IDs to one or more commission groups.
  • Allows you to define affiliate status within each assigned group (e.g., Approved, Pending, Declined, etc.).
  • Optionally writes a custom text value to a selected affiliate profile field when the rule is triggered.
  • Lets you choose which profile field receives this value.

How It Works

Whenever an order is tracked and contains a product ID that matches one of your configured rules, the plugin will:

  • Identify the affiliate or customer associated with the order (by email, as defined in the "extra data" setting).
  • Assign them to the selected commission group(s) for that product.
  • Set the affiliate's status within the group, as specified in your configuration.
  • If configured, write a custom message or value into a selected affiliate profile field.

This process happens automatically whenever a qualifying product is ordered through your PAP-integrated store even if the sale does not create a commission.

Plugin Configuration

To configure the plugin:

  1. Enable the Plugin: Go to Merchant panel > Configuration > Plugins, find Assign to groups by ordered products, and activate it.
  2. Open Plugin Settings: Click the plugin’s Configure button.
  3. Set Mapping Rules: For each rule (up to 10), configure:
    • Product IDs: Enter one or more product IDs that should trigger the rule. Separate multiple IDs with commas (e.g., prodA,prodB,prodC).
    • Commission Group: Select one or more commission groups to which the affiliate/customer should be assigned if an order contains a matching product ID.
    • Status in Commission Group: Choose the status to assign in the group (e.g., Approved, Pending, Declined, etc.).
    • Text to affiliate field (optional): Enter the text to write to a selected profile field when the rule is triggered.
  4. Set Extra Data Field: Choose which "extra data" field is used to identify the affiliate/customer by email. Default is usually "Extra Data 1".
  5. Select Profile Field to Update: Choose the affiliate profile field that will receive the optional text specified in each rule.
  6. Save Settings: Click Save to store your configuration.

Example Use Case

Suppose you want affiliates who purchase "Product X" to be placed in a "VIP Group" for higher commissions, and affiliates who purchase "Product Y" to be placed in a "Standard Group". You would:

  1. Enter productX in the "1. Product IDs" field, select "VIP Group" as the commission group, and choose the desired status.
  2. Enter productY in the "2. Product IDs" field, select "Standard Group" as the commission group, and set its status as needed.

When an order containing "productX" is tracked, the affiliate identified by the customer email address passed in the tracking request will be assigned to the "VIP Group" automatically.

For advanced automation, you can also write a specific keyword or tag into the affiliate’s profile field when they are moved to a group (e.g., "VIP Seller"), which can be used for further segmentation or reporting.

Notes and Limitations

  • Supports up to 10 mapping rules (product-to-group assignments).
  • If multiple products in an order match different rules, the affiliate may be assigned to multiple groups.
  • The plugin identifies the affiliate/customer by the email provided in the configured "extra data" field of the order.
  • Text is only written to the profile field if both the text and field are specified in the configuration.

Troubleshooting

  • Ensure product IDs in your rules match exactly those used in your store and tracking integration.
  • Check that the correct "extra data" field is selected for identifying the affiliate/customer email.
  • Remember to save your settings after any changes.
  • If assignments are not working as expected, verify that your integration passes the correct product IDs and customer email with each order.

For more about commission group statuses, see our commission group status documentation.

Alternatively if you are looking to set affiliate group / campaign based on their profile fields you can use the Assign to Groups by Affiliate Profile Fields Plugin.

If you need further assistance with this plugin, please contact our support team.

×