language invoice pdf wpml issue
-
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
- The topic ‘language invoice pdf wpml issue’ is closed to new replies.