• Resolved tezalsec

    (@tezalsec)


    Hi,

    I have a dutch website using woocommerce, your free plugin and WPML with english as a second language. When I sell a dutch or english product, the correct language is used for the email’s invoice pdf attachment. It reads out the correct language context, so far so good.

    But when I later want to generate an invoice pdf belonging to that order, from the woocommerce orders page using your button, the known language context for that customer is gone, and the admin-ajax.php file execution for the pdf generation then just uses the language that is set to the present wpml frontend cookie called “wp-wpml_current_language”. Chances are the pdf is then generated in dutch (or any other language that happens to be loaded in frontend at that moment), while the intention is to specifically regenerate a english pdf to give to an english customer.

    It would be nice if your plugin somehow remembers the language of the customer and using that language to generate the pdf invoice, instead of just using the current frontend language context of the logged in admin user.

    Thanks for a great plugin.
    Regards,
    Tez

    • This topic was modified 1 year, 10 months ago by tezalsec.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @tezalsec,

    Our free main plugin has limited compatibility with multilingual sites. To add support with multilingual plugins, you need to get the?Professional extension. This adds fully support for WPML and Polylang for WooCommerce.

    This extension adds new options within the plugin settings, including the Document language, which allow you to select the language behavior, e.g. generating the PDF documents in your customers’ language:

Viewing 1 replies (of 1 total)
  • The topic ‘language invoice pdf wpml issue’ is closed to new replies.