Virtuemart 1.1.9 AwoCoupon Pro 2.3.3 Gift Certificates Not send email to recepient


  • Default avatar
    dario9    
     9 years ago
    0

    I have followed the link https://awodev.com/blog/sell-gift-certificates-online-your-virtuemart-store
    the code of the gift is generated well and the mail is sent to the customer which buy the gift card, but is not sent to the recepient email configured like attribute field in the product.

    The awo coupon configuration is ok, the SELLABLE GIFT CERTIFICATES is installed.

    What is wrong? Thank you for support.
  • Your avatar
    seyi    
     9 years ago
    0

    Hello,

    What shopping cart are you using and what version?
  • Default avatar
    dario9    
     9 years ago
    0

    Virtuemart 1.1.9 AwoCoupon Pro 2.3.3.1
  • Your avatar
    seyi    
     9 years ago
    0

    Ok thanks. Took a look and there is a problem.

    Here is the fix:

    in www/administrator/components/com_awocoupon/helpers/estore/virtuemart1/giftcerthandler.php, around line 102 is this:

    <?php
                
    foreach(explode('<br/>',$row->product_attribute) as $v) {
                    list(
    $a,$b) = explode(':',$v);
                    
    $attrlist[strtolower(trim($a))] = trim($b);
                }
                
    $name_field = (int)$this->params->get('virtuemart1_giftcert_field_recipient_name''recipient name');
                
    $email_field = (int)$this->params->get('virtuemart1_giftcert_field_recipient_email''recipient email');
                
    $message_field = (int)$this->params->get('virtuemart1_giftcert_field_recipient_message''message');
    ?>


    Change it to this:
    <?php
                
    foreach(explode('<br/>',$row->product_attribute) as $v) {
                    list(
    $a,$b) = explode(':',$v);
                    
    $attrlist[trim($a)] = trim($b);
                }
                
    $name_field $this->params->get('virtuemart1_giftcert_field_recipient_name''recipient name');
                
    $email_field $this->params->get('virtuemart1_giftcert_field_recipient_email''recipient email');
                
    $message_field $this->params->get('virtuemart1_giftcert_field_recipient_message''message');
    ?>


    That should fix the problem.
  • Default avatar
    dario9    
     9 years ago
    0

    Thank you Seyi. This code fix the problem.