Tags in refer a friend subject line + personal message


  • Default avatar
    zorigo    
     7 months ago
    0

    I am setting up a refer-a-friend program and everything is working correctly with the exception of the subject line.  I am using the tag {user_name} in the body of the email and in the subject line.  The body it displays correctly, but the subject line just has the {user_name} tag.  Is it even possible to use that tag in the subject line?


    Note:  I am also using an AWO Coupon template to generate the email.

    Secondly, on the refer-a-friend landing page... the email body is showing up in the personal message are.  Any idea why this is happening?

  • Your avatar
    seyi    
     7 months ago
    0

    Hello,

    Where is this email you setup?  I ask because in AwoRewards {user_name} is used in both the invitation email and the sponsor email, neither of which are attached tot he awocoupon email template system.

    The invitation page will show the email message that is being sent, so the user knows what is going out.  In place of {customer_note} will be a textarea that the can fill out.
  • Default avatar
    zorigo    
     7 months ago
    0

    I go to AwoRewards > Invitation then I chose Add New.  The Form Type is email, and coupon template is a coupon in AwoCoupon.  Then the last textarea field is titled Email Message.  So, I think I just need to add just {customer_note} that field or leave it blank if I don't want a customer note?
  • Your avatar
    seyi    
     7 months ago
    0

    Hello,

    Yes, you would enter the {customer_note} field there if you want the user to enter a personal note before sending.

    And for that email, it currently does not replace the {user_name} in the subject line, but you can do that quite easily, just need to add one line of code.
    In the file www/administrator/components/com_aworewards/aworewards/public/class/class-aworewards-public-class-invitation.php, round line 245 is this:
    <?php
            $subject             
    $param_subject;
    ?>

    Right after that, add this:
    <?php
            $subject 
    str_replace'{user_name}'$user->username$subject );
    ?>


    It will be added on next update so do not have to worry about loosing it.