Hey,
I’m not aware of anyone else experiencing this.
What Theme are you using? Have you tried activating another Theme?
“removing most plugins except WooCommerce” – It would be really helpful to deactivate all plugins excerpt woocommerce and this plugin as a temporary check.
Ben
Thread Starter
rudek
(@rudolfkiseljak)
Hi Ben,
We use the One Page Express theme by Extendthemes, which we did deactivate and use the WP 2017 theme to test. But it turns out the issue was with the child theme called the One Page Express Pro which did not get turned off. Now we have this situation:
– turn off the One Page Express Pro child, Customizer for emails loads fine. Everything seems to work except loading one of the 3 pre-built themes. Nothing happens if I try to load one of those.
– turn off the One Page Express Pro child, customizer continues to work until you quit it, then does not load again
So, it looks like a possible workaround at least to test your plugin, unless you guys have any ideas how to properly fix it.
Now, after testing a while, we run into the same language problems as with other email customizers:
1) If we enter some custom texts in the Email Type&Text tab, they will appear in the PolyLang string translation tables. If we translate these strings to German (e.g. customer_invoice_subtitle) and send an email from a real storefront order in German, the translated texts still appear in English
2) Most other components and texts like order tables, address fields also stay in English for a German account, but some like email headers and the main headings appear in German.
So, what is the correct approach here to have everything properly displayed per language?
Where do the translations for your emails derive from – the PolyLang strings (seems not) or the Loco translations for your plugin, or the WooCommerce default email fields, or from somewhere else?
I could give you some screenshots, but can’t figure out how to add attachments here.
Thanks
Rudy
Thread Starter
rudek
(@rudolfkiseljak)
Sorry, this
“– turn off the One Page Express Pro child, customizer continues to work until you quit it, then does not load again”
should be
“– turn ON the One Page Express Pro child, customizer continues to work until you quit it, then does not load again”
Hey,
Child – There is no way for me to guess. I’m not sure what code is in your child theme or what it’s doing to the customizer.
1. This means polylang isn’t running for the email. If you are testing the send from the admin of your site and the admin is not set to german, then that can be your issue. Polylang inherits the current user, not the order language.
However Polylang requires a lot of fixes when trying to make it work with Woocommerce, I know there are several plugins that try to handle this. I would guess a good place to start is seeing how it defines which language to process emails in.
2. It’s important that you translate this plugin, separate from woocommerce since this plugin has to override template files and so the translations are put into this plugin.
3. If you edit the body text those edits live in your database. Same with subtitles. They are accesses and output by calling get options which is typical for how polylang adds in string translations.
I suggest asking the polylang community for information as well. I don’t use that plugin so I have only a little experience with it.
Thread Starter
rudek
(@rudolfkiseljak)
Ben,
Child: ok, that is understandable.
1. This means polylang isn’t running for the email. If you are testing the send from the admin of your site and the admin is not set to german, then that can be your issue. Polylang inherits the current user, not the order language,
->Rudy: not quite true, because if I send e.g. a standard Woo customer invoice email from English Admin from within a German order using Actions, it comes in German. If I have your plugin activated, then the same email is a mix of both languages. Since we need to send reminders or invoices from the Admin user, this should also work correctly.
2) It’s important that you translate this plugin, separate from woocommerce since this plugin has to override template files and so the translations are put into this plugin.
->Rudy: there are 320 strings to translate 🙁 . We tried with a few to see if it works, and it does, so we’ll need to invest some time to translate everything.
3. If you edit the body text those edits live in your database. Same with subtitles. They are accesses and output by calling get options which is typical for how polylang adds in string translations.
->Rudy: These ate still not working. Does your plugin override all field from all WooCommerce default emails?
4) one more thing: if we disable your plugin after having done tests, will all email sending revert to the WooCommerce default email templates – those should be untouched, correct?
Rudy
1. This was how it was explained to me by another polylang user. Perhaps polylang woocommerce integration is smarter now.
It’s still not something this plugin controls or edit. The language of the email is inherited. No code in this plugin forces a language.
2. You can help others using this free plugin by sending in your translations to be included for other users.
3. Our plugin adds body text fields and subtitle fields that don’t normally exist within the woocommerce options. One of the perks of this plugin is the ability to edit text you normally can’t and add text where you normally can’t.
4. By disabling this plugin your emails will use default woocommerce email templates.
It’s worth noting that you can edit subject titles, headings, email header image, and footer text within the customizer. Those are all woocommerce settings and so they will remain.
What Polylang Woocommerce plugin are you using? Have you talked with their support?
Thread Starter
rudek
(@rudolfkiseljak)
Ben,
2. You can help others using this free plugin by sending in your translations to be included for other users.
-> Of course, where do I upload?
3. This is nice, but I need to know “Does your plugin override all field from all WooCommerce default emails?” because it looks like it also displays some texts which we have entered in the WooCommerce standard email editor, but it only shows them in English and does not use translated versions
We use Polylang Pro and Pplylang foe Woocommerce. I am not sure what could I ask Polylang support – since the custom texts from WooCommerce emals work with polylang but don’t with your plugin and they do appear in the polylang translation tables, so PolyLang does what it should. We’ll test some more and come back as needed.
Many thanks for the support!
2. Send to info@kadencethemes.com
3. No, it doesn’t override settings that woocommerce offers by default. It allows you to edit those fields like email header right in the customizer but it’s not changing where that input is saved.
For example in your woocommerce settings > emails edit the customer completed order email. Change the heading and subject. Then go into the email customizer and select that same email template. You will see that the heading and subject are the same as the woocommerce setting you just edited. now you can edit those and go look at the woocommerce settings, again they will match what you just edited.
Does that help explain?
Ben
Thread Starter
rudek
(@rudolfkiseljak)
ok, thanks for the explainer.
Where do you want me to upload the full translation we made for German_Informal?
Also: I am not able to load any of the prebuilt templates. Nothing happens when I click or double-click.
You can send the translation to: info@kadencethemes.com There is no place to upload.
Normal situations you can click on one, it selects then you can scroll down and click “load template”. I suggest you deactivate your plugins and try another theme if you can’t select a template.
Ben
Thanks, it was added in the most recent update.