Auto issue a gift certificate/coupon after successfully using a coupon code first


  • Default avatar
    mx5gr    
     12 years ago
    0

    We have been using Awo Coupon 1.09 free version under Virtuemart 1.19 and Joomla 1.5.26 with great success for our needs. However, we have a marketing scenario whereas sales people want to send an e-mail to a specific group of people. After someone from the group completes a successful first purchase within the e-shop, he/she will gain a specific discount in his/her second buy.

    I thought that we can issue a coupon code (or individual codes as a batch) whereas if the client completes it within Virtuemart's coupon box after the first purchase, then he/she will be awarded a gift certificate (or another coupon) code which will have the percentage/actual discount that he/she will have gained towards a second purchase.

    How can we program the component so that a gift certificate/coupon is automatically awarded to a customer after he/she will have used a specific coupon code?
  • Your avatar
    seyi    
     12 years ago
    0

    Hello,

    When the coupon code is marked as used, you could add your custom code to generate a coupon and send by email. In 1.0.9, it is marked as used in this file:
    www/administrator/components/com_awocoupon/assets/virtuemart/ps_coupon_remove.php

    Note that this code is called when the order is created. So if you use something like paypal, this code would be called when the order is pending.

    It might be easier to modify AwoCoupon Email to your needs.
  • Default avatar
    mx5gr    
     12 years ago
    0

    Thank you for the prompt reply. Do you undertake such a modification? If yes, can you send me a quotation? We do not use paypal, only Credit Card clearing and we also offer Cash On Delivery. Furthermore, we are using other coupon codes, which are active, for discount purposes. A edit of the file you mention shouldn't mean that any coupon that gets invalidated/cancelled would lead to an e-mail dispatch of the new coupon/gift certificate?
  • Your avatar
    seyi    
     12 years ago
    0

    I have sent you a private message.