Woocommerce Email Variables Not Working

Hi guys,

When a new order is made, the email I receive isn’t displaying the email variables. For e.g., it should say “John Smith” in the subject but instead shows “{customer_name}”.

I spoke with the Woocommerce support team and they think it’s a conflict with the theme. Any thoughts?

Cheers!

Tom

Hi Tom,

Thanks for writing in! First of all, make sure that you’re fully updated and using latest X compatible versions by referring to our guide here (https://theme.co/apex/forum/t/troubleshooting-version-compatibility/195).

Also make sure that you’re using the latest version of WordPress core as well by referring to the following link (http://wordpress.org/download/).

If you’re still having issues, try switching to another theme to see if you’re experiencing X theme related issue. If it is theme X theme related and if you’re using a child theme, try switching to your parent X theme and confirm the issue as well.

If you confirm the issue to be related to X theme, please provide us with exact steps to reproduce the issue, so that we can test it on our end and assist you.

Thanks!

Hi @mldarshana,

Thanks for responding. Everything appears to be up to date. I’ve had a technician do some digging and they’ve said that the WooCommerce templates are missing from the theme. It seems to be causing problems with the email as it’s not adding the email variables properly.

Would you have a solution for it? Any assistance would be hugely appreciated.

Thank you! :blush:

Hello @tapoulton2,

Thanks for updating the thread. :slight_smile:

I checked your licence page and inspected all three websites that’s listed. I can see that on one of the website you are using WooCommerce. However, it seems that you are using the latest version of WooCommerce 3.4.4. As of today the supported version of WooCommerce is 3.4.2. I suggest you to please downgrade WooCommerce from 3.4.4 to 3.4.2 and see how it goes.

Thanks.

Thanks, @Prasant.

What would you suggest is the best way to downgrade WooCommerce from 3.4.4 to 3.4.2?

Hugely appreciated.

Hi There,

Please download the WooCommerce version 3.4.2 from this link: https://downloads.wordpress.org/plugin/woocommerce.3.4.2.zip.

After that login to your FTP account then rename the /wp-content/plugins/woocommerce/ directory to /wp-content/plugins/woocommerce.old/.

Then extact and upload the WooCommerce version 3.4.2 to the /wp-content/plugins/ directory.

Hope it helps :slight_smile:

Hi @thai and @Prasant,

I’ve successfully downgraded WooCommerce from 3.4.4 to 3.4.2 but the issue still persists. Any other thoughts?

Thanks.

Hi Tom,

Do you have WPML plugin installed on your site? for specific do you have this plugin installed “WooCommerce Multilingual”?

If so, please make sure it’s up to date, check this reference article. If not, then please provide us with WordPress Dashboard login details in a “Secure Note” so we can investigate this issue.

Thanks.

Hi @Alaa,

I don’t have the WooCommerce Multilingual installed. Please see below for the login details:

Hi Tom,

Sorry, but I checked (WooCommerce > Settings > Emails) tab and I found it hard to find which email exactly you mean that you are using {customer_name} with? also, to use these email variables:

You must have this add-on installed:

Which I couldn’t find on your website.

Thanks.

Hi @Alaa,

It’s the email for “New Order”. Do I need to have https://woocommerce.com/products/follow-up-emails/ in order for this to work? The variables start “{customer_first_name} {customer_last_name} just bought {item_names}…”

Hi @tapoulton2

According to this doc, yes you will have.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.