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.

This topic contains 4 replies, has 3 voices.

Last updated by Carlos Rojas 2 years ago.

Assigned support staff: Carlos Rojas.

Author Posts
April 23, 2018 at 1:21 pm #1768827

Tyler Brown

I am trying to:

With the latest version of WooCommerce Multilingual email subject variables are not correctly resolved.

This worked correctly in the previous version

Link to a page where the issue can be seen:

hidden link

I expected to see:

[Velo MSM] New customer order (49567) - April 20, 2018

Instead, I got:

[{store_name}] New customer order ({order_number}) - {order_date}

April 23, 2018 at 5:36 pm #1774441


Languages: English (English ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Hello there,

this is a known issue and our developers are already working to fix it.
While waiting that we release a new version, you can try the following workaround:

- Open the /wp-content/woocommerce-multilingual/inc/class-wcml-emails.php file.
- Comment out (or remove) lines 138 and 139
- Save and upload the file

// add_filter( 'woocommerce_email_heading_new_order',  array( $this, 'new_order_email_heading' ) );
// add_filter( 'woocommerce_email_subject_new_order',  array( $this, 'new_order_email_subject' ) );

Let us know if it helps.

April 27, 2018 at 5:56 pm #1866787

Tyler Brown

Commenting out those lines did not help.

April 27, 2018 at 6:09 pm #1867114

Carlos Rojas

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

My name is Carlos and I will be taking this ticket.

This ticket has been escalated to our 2nd tier of support. Our specialists in the 2nd tier are looking for a final fix.

If the workaround still doesn't solve the issue on your end I kindly ask you to follow this steps:
- Back up your site first before making any change, this is for security reasons.
- Deactivate all the plugins that are not related to WPML.
- Switch for a moment to a WordPress default theme like Twenty Seventeen.
- If the issue is gone, activate one by one to see with which one there is an interaction issue.

Could you tell me the result of this steps?

Best regards,

May 14, 2018 at 11:29 am #2117734

Carlos Rojas

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi there,

I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Kind regards,

The topic ‘[Closed] Variables are not resolved in email subject lines.’ is closed to new replies.