Gift certificate sending email using custom field


  • Default avatar
    renaudLehibe    
     3 years ago
    0

    Hi,

    We actually have an issue to send gift certificate to an other email thant the customer. We followed the tutorial here: http://awodev.com/blog/sell-gift-certificates-online-your-virtuemart-store

    However the gift certificate is always sent to the customer email ...

    Do you know how to track why it's not working ?

    Thanks for your support,
    Renaud
  • Your avatar
    seyi    
     3 years ago
    0

    Hello,

    The email defaults to the customer who purchased the gift certificate if there is no email entered or it is not a valid email. You should verify you have set up the custom email properly within AwoCoupon, you can find this in the section 'Product’s custom attributes – recipient details' in the blog you mentioned. there is also information in the documentation:
    http://awodev.com/documentation/awocoupon-pro/configuration

    Under the gift certificate section.
  • Default avatar
    renaudLehibe    
     3 years ago
    0

    Hello Seyi,

    After a while on other things, I come back on this issue.

    I check the given link and it's why I've done to setup the custom fileds for each (recipient name, email address and message).

    For information I'm using Joomla 2.5.4 with virtuemart 2.0.13.

    Bellow the configuration used to setup these fields:

    For the Message field:
    ID (virtuemat_custom_id):19
    Type: Plug-ins
    Title: Message pour le destinataire du cadeau
    Published: yes
    Parent: no
    Cart Attribute : yes
    Default : textareainput
    Admin only : no
    Is a list? : no
    Hidden : no
    Select a plug-in : VMCustom - textaerainput
    -- Title : Message pour le destinataire du cadeau
    -- Rows: 5
    -- Columns: 40
    -- Price per letter or per input: Price per input

    For the email filed (the one who receive the gift):
    ID (virtuemat_custom_id):20
    Type: Plug-ins
    Title : Email du destinataire du bon cadeau
    Published : yes
    Cart Attribute : yes
    Default : textinput
    Admin only : no
    Is a list? : no
    Hidden : no
    Select a plug-in: VM - Custom, customer text input
    -- Title: Email du destinataire du bon cadeau
    -- Size of input: 100
    -- Price per letter or per input: Price per input

    For the recipient name field:
    ID (virtuemat_custom_id):21
    Type: Plug-ins
    Title : Nom du destinataire du bon cadeau
    Published : yes
    Cart Attribute : yes
    Default : textinput
    Admin only : no
    Is a list? : no
    Hidden : no
    Select a plug-in: VM - Custom, customer text input
    -- Title: Nom du destinataire du bon cadeau
    -- Size of input: 100
    -- Price per letter or per input: Price per input

    (All empty fields are discarded in my export)


    According to this, I've setup awocouppon pro in Configuration/Gift Certificate Products with:

    In the General section:
    - Order status for sending automatic email: confirmed
    - Custom Attribute Recipient Name Field: 21
    - Custom Attribute Recipient Email Field: 20
    - Custom Attribute Recipient Message Field: 19

    In the vendor section:
    - Activate: No
    - Email Subject: empty
    - Email Body: empty
    - {vouchers} :
    {voucher} - {price} - {product_name}


    So after some testing, only the user who buy the gift received it by email, the gift recipient have no email ....

    Do you see something wrong in my setup ?
    Thanks for your support,
    Renaud
  • Your avatar
    seyi    
     3 years ago
    0

    Hello,

    Your configuration looks fine and should send to the recipient. I do not know what could be wrong, but can look into it. Please send me temporary admin/ftp access and I can take a look.
  • Your avatar
    seyi    
     3 years ago
    0

    Ok, solved it.

    It seems that you set up a parent child relationship with the gift certificates and when a child is picked, the attribute is not set on the child product but the parent product. So within the code now checking to see if it is set on the current product. If not it then checks the parent product.
  • Default avatar
    renaudLehibe    
     3 years ago
    0

    Wow fabulous ! Really a big thanks ! I imagine that the new code will be available on the next release ? ;)
  • Your avatar
    seyi    
     3 years ago
    0

    It shall, thanks for reporting this.