Send Separate Email Template After Code List Reaches 0


  • Default avatar
    matt@rocketcert.com    
     20 days ago
    0

    We purchase pre-generated codes from a vendor and load them in the list. Once the list has been sold, the plugin currently continues to create codes and send them out. These codes will not work. We would like to be able to send a different email to the customer telling them to call customer service to obtain their code. This email should automatically send instead of the code email.

    Another suggestion, we would love to be able to receive an email once the list reaches X number of codes left, to tell us to purchase/upload more codes.
  • Your avatar
    seyi    
     15 days ago
    0

    Hello,

    For the email, you would need to write a plugin.  There is a trigger that already exists you can call which returns the coupon code awocoupon generated or retrieved:

    awocouponOnAfterCouponGenerate

    This is called everytime a coupon is generated anywhere within AwoCoupon, so you cannot use it exclusively for gift certificate generation, but what you can do is view the code that is generated, and check if it a predefined one, coming from the #__awocoupon_giftcert_code table.  And if so, you can check how many are left that have not been used.  And if it is below your threshold, trigger an email.
  • Default avatar
    matt@rocketcert.com    
     13 days ago
    0

    Ok great, would you be able to develop such a plugin for us? Also, would you be able to build in the functionality of stopping the email to the customer if the code is not one from #__awocoupon_giftcert_code table?
  • Your avatar
    seyi    
     9 days ago
    0

    Hello,

    Can build the plugin but would charge for it.  Send me a private message if you are interested.