Send voucher not working


  • Default avatar
    matteo5    
     5 years ago
    0

    Hello,


    cannot send a voucher in tool SEND A VOUCHER. Appears error in email body (enter a valid value) so cannot send voucher


    Pleas help me.


    Matteo Bellardi

  • Your avatar
    seyi    
     5 years ago
    0

    Just to make sure, is the email body field empty?

    Also what editor are you using in the backend?
  • Default avatar
    matteo5    
     5 years ago  last edited 5 years ago
    0

    Hello,


    all editor not working ecept "Editor codemirror". The others (as tinyMCE,, JoomlaCK or ARKEditor) not working or just send text without formatting. Also setting "Editor none" in Joomla global configurations cannot sending email because error in body mail.

    Matteo


    Hello,


    Editor "codemirrow" just works with some email templates and not always

  • Your avatar
    seyi    
     5 years ago
    0

    Ok, there is an issue with the send a voucher not rendering the html.  Here is how you can fix it, in the file

    www/administrator/components/com_awocoupon/awocoupon/admin/class/class-awocoupon-admin-class-emailcoupon.php, around line 60 is this:
    <?php
        
    public function save$data ) {
    ?>

    Right after that add this:
    <?php
            $data
    ['email_body'] = JRequest::getVar'email_body''''post''string'JREQUEST_ALLOWRAW );
    ?>

    That should fix that issue.