Is there a way to use your API to generate coupon codes programatically?


  • Default avatar
    superman    
     a year ago
    0

    We're trying to create a script that generates AWO Coupon codes based on a user buying a product... is there a way to call a function in your API to generate a list of codes?  That would be great if so.  Thanks in advance.

    BTW, this would be similar to what your "Generate Coupons" feature does in the back-end.
  • Your avatar
    seyi    
     a year ago
    +1

    Hello,

    there is the file /administrator/components/com_awoocoupon/helper/plgautogenerate.php
    You can include that class and call awoAutoGenerate::generateCoupon