• Resolved echappee06

    (@echappee06)


    Hello,

    I have some issues when I set up some texts with a single quote in the emails or in the Left side Voucher notice : there is an escape character which is showed in the email or on the webpage.
    Example : when typing “Pour toute demande d’information, n’hésitez pas”, I get “Pour toute demande d\’information, n\’hésitez pas”.

    There are also somme issues with the “€” character in the customer receipt. I get :
    “Montant 15.00 a??” instead of “Montant 15.00 €”.

    • This topic was modified 4 years, 2 months ago by echappee06.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Codemenschen

    (@codemenschen)

    Hi @echappee06

    Thanks for bringing our attention her.
    Regarding Euro sign issue if you are able to modify the code you can update below file.
    gift-voucher/templates/pdfstyles/style1.php and same to all style files.

    and at the top you can define the ASCII value for Euro as below
    define(‘EURO’,chr(128));

    and instead of this “wpgv_price_format” function you can replace it as below
    EURO.$wpgv_add_extra_charges instead of wpgv_price_format($wpgv_add_extra_charges);

    Hope this solution works for you. and regarding writing with single quotes we will surely try to resolve this in our upcoming updates ??

    Thread Starter echappee06

    (@echappee06)

    Hi,

    I only get an “€” symbol (but not the amount) if I put :
    define(‘EURO’,chr(128));
    on top of style1.php, style2.php and style3.php and then replace the line 90 of receipt.php with the following :
    $receipt->Cell(0,0,' '.EURO.$wpgv_add_extra_charges,0,1,'L',0);

    Is there any solution for the single quotes issue while waiting for the new update ?

    • This reply was modified 4 years, 1 month ago by echappee06.
    Thread Starter echappee06

    (@echappee06)

    I managed to get the € symbol by changing the line 88 from receipt.php with :
    $receipt->Cell(0,0,' '.wpgv_em($currency),0,1,'L',0);

    I found some other bugs or improvements ideas :
    – The amount format should be set in the parameters (for ex., in France, the amount should be 5,00 € and not 5.00 €). I edited the wpgv_price_format function to do it but I know this is not a good solution …
    – When someone buys a gift card for himself, the {recipient_name} field doesn’t show in the email.
    Ex : I put this in the email parameters : “La carte cadeau a bien été transmise par e-mail à : {recipient_name}”. but I get this in my email : “La carte cadeau a bien été transmise par e-mail à : .”

    Plugin Author Codemenschen

    (@codemenschen)

    Hi @echappee06

    Thanks for bringing our attention here. Sure we will check for the amount format in future updates. So, Admin can change the format.

    Also, regarding “Recipient Name” issue you can update the default value for “to_name” column from “{prefix}giftvouchers_list” table.

    Let us know if we can further help you ??

    • This reply was modified 4 years, 1 month ago by Codemenschen.
    Thread Starter echappee06

    (@echappee06)

    Thanks for your answer.
    I’m sorry, but I don’t understand what I need to do to display the buyer’s name as Recipient Name when someone buys a gift form himself.

    Plugin Author Codemenschen

    (@codemenschen)

    Hello @echappee06

    Yes, I understand this need to be different subject line management if someone purchases voucher for themselves but as this option is not available for now you can resolve this by adding default value.

    We will surely add this different management in upcoming updates. ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Escape characters for french texts’ is closed to new replies.