[resolved] € euro character in the email gift voucher


  • Default avatar
    denis26    
     10 years ago
    0

    I use awo_coupon PRO 1.5.2 & virtuemart. (french sorry for my english)

    € character in the email gift voucher

    In my email, I use the tag {gift_certificates}
    I did not have the euro symbol in the amount of the gift voucher but the letters EUR

    I change the file : administrator/components/com_awocoupon/assets/virtuemart/ps_awo_giftcert.php like this:
    In line 180 :
    JText::_('VALUE').' : '.number_format($row['price'],2).' €'."\r\n".


    and I got the desired result: 25.00 €

    in the same e-mail I changed the date format with success thanks to reading this forum and other great ideas in my books PHP.

    I change one or two down the line, like this:
    ($row['expiration']!='NULL' ? JText::_('EXPIRATION').' : '.date('d / m / Y',$row['expirationraw'])."\r\n":'').


    thank and good luck.

    In French for french users, pour les utilisateurs français :

    j'utilise awo_coupon PRO 1.5.2 & virtuemart

    je désirais mettre le caractere "€" celui de l'euro dans l'email cheque cadeau

    Dans mon mail, j'utilise le tag {gift_certificates}
    et évidement, je n'avais pas le sigle euro dans le montant du cheque cadeau mais les lettres EUR

    J'ai modifier le fichier administrator/components/com_awocoupon/assets/virtuemart/ps_awo_giftcert.php comme cela :
    ligne 180 environ :
    JText::_('VALUE').' : '.number_format($row['price'],2).' €'."\r\n".


    et j'ai obtenu le résultat espéré : 25,00 €

    dans le même e-mail j'ai changé le format de la date avec succès grace à la lecture de ce super forum et autres idées dans mes bouquins de PHP.

    j'ai modifier une ou deux ligne plus bas, comme ceci :
    ($row['expiration']!='NULL' ? JText::_('EXPIRATION').' : '.date('d / m / Y',$row['expirationraw'])."\r\n":'').


    et j'ai obtenu 12 / 09 / 2014

    Bonne chance