[Resolved] PDF coupons are being generated in admin language only
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing issues with the 'Flexible PDF Coupons' plugin by WpDesk on a multilingual site, where the German PDF template is sent for orders placed from secondary language versions of the site instead of the respective English or French templates, even though you have assigned specific templates to each language version of the product.
Solution: We recommend contacting the plugin author to request a compatibility update with WPML. We provide resources for developers to make their plugins compatible:
Additionally, encourage the plugin author to join our Go Global program, where they can work with our compatibility team to ensure their plugin works seamlessly with WPML.
We are using "Flexible PDF Coupons" by WpDesk on our site.
The working of the plugin is as follows:
-We create a PDF template and assign it to a variable product (product type is PDF voucher).
-The user visits that product and enters the required data.
-When the order status changes to complete, the user-entered values are printed on that template and sent to the customer's email address.
Configurations:
The primary language is German and the secondary languages are English and French.
- we have translated the product into all secondary languages and disabled the voucher template field translation
- we have created separate PDF templates for German, English and French and assigned them to the German, English and French versions of the product.
Problem:
Orders placed from German version of the site are okay and German PDF is sent to the users when order status changes to complete.
When a user orders the product from a secondary language, the woocommerce order shows the product in the Primary language with variation id of the primary language product. When the order status changes to complete it still sends German template of the PDF to the user while we have set English and French templates to the English and French version of the product.
Note:
I have also tried to translate PDF templates and made system field (pdf template) for products to copy. That did not work as well.
Please check this ASAP and let me know if you require more information.
Theme and plugin authors are welcome to join WPML’s Go Global program, which helps them make their code multilingual ready. Together with WPML’s compatibility team, they can test and confirm that their theme or plugin works with WPML. See https://wpml.org/documentation/support/go-global-program/ for details and you can refer your theme/plugin provider to this as well.