Hello @primeoak,
I hope things are going well for you.
This is more like a bug. The team is able to replicate the issue, and the Second Level Team reviewed the case and shared the hotfix with us, which we can use as a mu-plugin on the site until the Forminator team resolves it in the upcoming version.
add_filter( 'forminator_custom_form_mail_admin_message', 'wpmudev_currency_value_fix', 10, 5 );
function wpmudev_currency_value_fix( $message, $custom_form, $data, $entry, $cls_mail ) {
if ( 47662 !== intval( $custom_form->id ) ) { // Please change the form ID.
return $message;
}
foreach ( $data as $key => $value ) {
if ( false !== strpos( $key, 'currency' ) && ! empty( $data[ $key ] ) ) {
$field = Forminator_API::get_form_field( $custom_form->id, $key, true );
$formatted_value = Forminator_Field::forminator_number_formatting( $field, $value );
if ( ! empty( $field['currency'] ) ) {
$formatted_value = str_replace( $field['currency'], '', $formatted_value );
}
$message = str_replace( $field['placeholder'] . $value, $field['placeholder'] . $formatted_value, $message );
}
}
return $message;
}
Here are the steps to adding the above script as add mu-plugin to the site.
1. Navigate to File Manager and Look for the public_html directory path or wp-content.
2. under this, you will get the mu-plugins directory; if the folder does not appear, you can create it as mu-plugins.
3. Create a new PHP file, “forminator-fix-currency.php”
4. Paste the code under the above-mentioned .PHP file.
5. Change the form ID 47662 to your form ID, which you’ll get by copying the form shortcode.
6. Save the changes and close the file.
If you still need more information on creating mu-plugin, then you can check this guide:- https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins
Please apply the above script on the staging site before adding it to the main site and share the results with us.
Kind Regards,
Imran Khan