• Resolved flyartcom

    (@flyartcom)


    Hello there
    Great plugin! Only issue I am having is that the PDFs generated in the order detail and thank you page (print invoice / download invoice) are not the same ones as the ones sent via email! While the PDF in my email is exactly how I want it (translated with WPML) the one available for print/download contains a mix of both languages… I searched for all strings and they are all correctly translated, no caching on the site but the issue remains no matter what I try…
    Any help is really appreciated!
    Thank you, Pascal

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi flyartcom,

    Thanks for reaching out.

    We couldn’t replicate the issue when we tested the scenario on our end. Invoice document generated through print/download button was identically with the invoice document attached with the mail.

    Can you share your WooCommerce system status report (WooCommerce>status>system status report) to have a better understanding of your system environment. You may share the report via this link if you have any privacy concerns.

    Thread Starter flyartcom

    (@flyartcom)

    Hello

    Thanks for your reply. Have you tried it in a multi lingual envireonment? When using the default language (in my case italian) they are identical but as soon as I switch to another language parts of the pdf remain in the original language (I translated all the strings).
    Here’s a screenshot of the invoice generated through the print button (with italian parts instead of german): https://www.dropbox.com/scl/fi/pg2xm2e77lbxdwzlvb3hl/invoice_6936_generated_through_print_button.png?rlkey=v8x2u8k9kgodwbl8ohxnwcv0g&dl=0
    And here’s the same invoice pdf attached to the order email (correct): https://www.dropbox.com/scl/fi/mq0qn5s08e8xc3xsjk3y0/invoice_6936_attached_to_email.png?rlkey=xcujewdxsk26kcf1alx39r7wo&dl=0

    Also hier you can access the requested report: https://www.dropbox.com/scl/fi/xvcx0g4cih6ogmfcrmdhp/SystemStatusReport_shop.baiaorte.ch_2024-05-14T10-42-11.txt?rlkey=07aqemzxbtntmnqqs4tdcjfvh&dl=0

    Thanks for your help
    Pascal

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi flyartcom,

    We want to inform you that, in our basic plugin, the document is printed based on the site language. For example, if a user places an order in French, they will receive the attachment in French. If the admin uses the German language and tries to print the same invoice, they will receive the invoice in German, not in French, because the basic plugin renders the document in the language of the locale.

    If you want to keep the document in the language it was created in, kindly consider upgrading to our Premium plugin, as this feature is only available in the premium version.

    Thread Starter flyartcom

    (@flyartcom)

    Hello
    Thank you for your reply.

    I actually do want exactly what the basic plugin does! The actual issue is that it doesn’t matter what language the site is set by the user – the pdf generated by print or download is always in the locale of the main language (italian). I have made test orders in every language on the front end and no matter what language I have set when I order the pdf generated form print/download button is in italian.
    But the PDF sent via email is in the correct language

    I hope you understand what I mean?

    Thank you
    Pascal

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi flyartcom,

    As previously mentioned, if your client places an order in French, they will receive the attachment in French via email. However, when you try to generate PDF invoice from the print/download button, it will be downloaded in the language of your site and not in French.

    If you want to keep the document in the language it was created in, kindly consider upgrading to our?Premium plugin, as this is a paid feature.

    Thread Starter flyartcom

    (@flyartcom)

    Hello and thank your for your reply.
    We seem to have a communication issue, so let me try to explain it again:

    The emails work perfectly fine.
    But unlike your statement the PDF generated by the print/download button in NOT in the language of the site. Meaning that if my site is in french the PDF generated remains in italian (primary language).. if I swtich to english the generated PDF is not in english but still in Italian.

    I don’t need the PDF to remain in a certain langauge and I’m totally fine with the PDF being generated in the site language but this doesn’t work and that the issue I’m trying to gete resolved.

    Thank you
    Pascal

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi flyartcom,

    Thanks for brief us on the detail. We want to inform you that the attachment language code is controlled by WooCommerce. Our plugin sends the attachment with WooCommerce emails, as such attachment will be in WooCommerce mail language. However, the document generated through the print and download button will be in the site’s default language.

    In a scenario where a site does not have the WPML plugin, the document generated from the print and download button will be in the locale language, while the attachment will be in WooCommerce mail language. Furthermore, if a site has the WPML plugin, the document generated from the print and download button will be in the site’s default language, and the attachment will be in WooCommerce mail language.

    If you want to customize document language in email attachment, print and download options, you may go with paid plugin.

    Thread Starter flyartcom

    (@flyartcom)

    Hello

    Thank you for clarifying this. I now understand why the print/download generated PDF is in the site’s default language.

    Thank you
    Pascal

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Different PDFs in email and for download/print’ is closed to new replies.