Skip to main content
Every partner needs a discount code. Manage them automatically.
Enable Safe Discount Codes in Settings → Discount Settings to protect base discount codes while generating unique codes per checkout. See Initial Settings for configuration.

Auto-Create on Activation

Trigger: CC Partner Activated Condition: No discount code exists Actions:
  1. Generate code using template from Settings → Discount Settings → Safe Discount Code Template
    • Default pattern: {FIRSTNAME}{DISCOUNT} (e.g., SARAH20)
    • Can include {FIRSTNAME}, {LASTNAME}, {DISCOUNT} variables
    • Random number always appended for uniqueness
  2. Handle conflicts: SARAH20A, SARAH20B
  3. Create Shopify discount (percentage, unlimited use)
  4. Store in cc-collab-discount-code and cc-collab-discount-amount
Note: If Safe Discount Codes is enabled, base codes are protected and unique codes are generated per checkout session.

Tier-Based Updates

When tier changes, update discount amount:
TierDiscount
Bronze15%
Silver20%
Gold25%
Platinum30%
Trigger: CC Creator Field Updated (cc-partner-tier) Actions:
  1. Lookup tier discount amount
  2. Update Shopify discount
  3. Update cc-collab-discount-amount
  4. Notify partner: “Your discount increased to {amount}%!”

Deactivate on Exit

Trigger: CC Partner Deactivated Actions:
  1. Disable Shopify discount (not delete)
  2. Update cc-discount-status: disabled
  3. Preserve for potential reactivation

Reactivate on Return

Trigger: CC Partner Reactivated Actions:
  1. Re-enable existing discount
  2. Update status
  3. Send welcome-back email