Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:

I am having an issue where WP Forms emails the ID of the product instead of the Name when WP Forms Multilingual is enabled.

Solution:

- To fix this issue, apply the following temporary workaround:

- Edit the file wp-content\plugins\wpml-wpforms\classes\Hooks\WpForms\Notifications.php
On line 166, add the following code:

if (!empty($field['dynamic'])) {
    return $field['value'];
}

- Add the code just before this line:

switch ( $field['type'] ) {

Relevant Documentation:

https://wpml.org/errata/wpforms-multilingual-dynamic-options-show-id-instead-of-name-in-emails/

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.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by dominikS-39 1 year ago.

Assisted by: Christopher Amirian.

Author Posts
April 4, 2023 at 6:21 am

dominikS-39

WP Forms emails ID of the product instead of the Name when WP Forms Multilingual is enabled

April 4, 2023 at 7:00 am
April 4, 2023 at 8:29 am #13397515

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

The migration of the site was successful and I reported this to the compatibility team.

I will get back to you as soon as I have an update.

Thank you.

April 6, 2023 at 6:17 am #13416405

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

The issue is reported to the development team and a fix will be available in future releases. But for now, there is a temporary workaround below that I'd appreciate it if you could apply and get back to us with the result:

- Edit the file wp-content\plugins\wpml-wpforms\classes\Hooks\WpForms\Notifications.php
- On line 166 add this code

if (!empty($field['dynamic'])) {
				return $field['value'];
			}

- Just before this line switch ( $field['type'] ) {

That will fix the issue.

Thank you.

April 7, 2023 at 6:58 am #13425105

dominikS-39

Hi Christopher,
the temporary fix is working

My issue is resolved now. Thank you! 🙂

Best regards

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.