Multiple Gift Voucher Problem


  • Default avatar
    callumrexter    
     12 years ago
    0

    Hi,

    I have an issue with the Gift Voucher component that I cannot figure out, when a shopper purchases more than 1 product with a gift voucher they are only sent 1 email but with both voucher images instead of an email for each gift voucher which makes no sense.

    If you could help that would be appreciated.
  • Your avatar
    seyi    
     12 years ago
    0

    Welcome to the forum.

    Most users prefer to send all the gift vouchers in 1 email instead of multiple emails to the same email address since the gift voucher is in the image itself. If you want one email per gift voucher, this can be done, but requires you make changes to AwoCoupon. Is that what you want?
  • Default avatar
    callumrexter    
     12 years ago
    0

    Yes, can you advise changes
  • Your avatar
    seyi    
     12 years ago
    0

    Ok, in www/administrator/components/com_awocoupon/assets/virtuemart/ps_awo_giftcert.php, on line 99 is this:
    <?php
        $allcodes
    [$this_mail_key['email']][] = array('id'=>$database->insertid(),
    ?>


    change it to
    <?php
        $allcodes
    [$row->order_item_id.'-'.$i][] = array('id'=>$database->insertid(),
    ?>


    The code is not tested, but should work.