[Resolved] Duplicated bank information in order confirmation email
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing an issue where bank details are showing twice in the order confirmation email when the multicurrency option is enabled in the WooCommerce Multilingual extension.
This should serve as a temporary workaround until our developers provide a permanent fix. If this solution doesn't seem relevant to your issue, please open a new support ticket so we can assist you further.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
In the order confirmation email, the bank details show twice if the multicurrency option is enabled in the Woocommerce Multilingual extension. The bank transfer option has been removed from the English version in functions.php
add_filter('woocommerce_available_payment_gateways', 'hide_bank_transfer_for_english');
function hide_bank_transfer_for_english($gateways) {
if (ICL_LANGUAGE_CODE == 'en') {
unset($gateways['bacs']);
}
return $gateways;
}
But still in the email bank info appears twice. Please help
The other point is that you used an older constant which is deprecated in the code. Would you please use the code below for the detection of the language?
It doesn't matter if I overwrite the email theme or not, the transfer information still appears twice. Changing the theme to wordpress default doesn't help either, so it's not a problem of our changes in child theme. I can provide access to staging.
1) yes, clean storefront theme & only Woocommerce, WPML, WPML String Translations and Woocommerce Multilingual & Multicurrency activated, issue still occurs
2) I already described that the problem occurs when the multicurrency option in Woocommerce Multilingual extension is enabled, you don't even need to disable the plugin, but yes - disabling this add-on solves the problem
3) if I switch the theme to default and disable all plugins there is no custom code, yet issue still occurs
since reporting this problem we have migrated the site to a different server so submitted logs are no longer valid
Please make a full backup of your site (files and database) and confirm it in your next reply.
If possible please provide access to the staging website, not production.
Please note, that I might need to do some debugging procedures like enable/disable plugins, switch themes, change the default language of the user account, and/or access your website database to debug the issue furtherly.
I will share with you any changes or steps done in this process. Please let me know if you do not agree with the above or if I do not have your permission for any.
I would need to access both your site's wp-admin and FTP account, if possible.
I have enabled the private username and password fields in your next reply.
I suggest you create a new user, set it as an administrator and then add those credentials in the private fields mentioned.
You can safely add your information into these fields.
Hello. same problem on my project also. All payment methods show twice in thank you page and in order email.
Let me know if I can provide any access or anything.
New threads created by Dražen and linked to this one are listed below: