Sending Gift Certificate to a different email address


  • Default avatar
    RiaanZA    
     13 years ago
    0

    Hi there,

    Is there any way to enable AWO coupon to send the gift certificate to a different email address, other than the person who is making the purchase.

    The reason I ask is because the system I need to create needs to allow for people to buy and send the gift certificate to an alternate email address.

    I can create another email address user field in virtuemart, but how would I go about setting awo coupon to use this address instead?
  • Your avatar
    seyi    
     13 years ago
    0

    you would have to customize AwoCoupon to do this. The code for the gift certificate is in
    www/administrator/components/com_awocoupon/assets/virtuemart/ps_awo_giftcert.php

    If you search for user_email, you will find the email it is using. You can replace that with the field you are creating.
  • Default avatar
    RiaanZA    
     13 years ago
    0

    Thanks seyi, I managed to get it working.

    I created the new user field and then replaced user_email in then SQL query and in the $mycodes array with the new field name in ps_awo_giftcert.php