Overview of the Issue
When using Gravity Forms with WPML Multilingual & Multicurrency for WooCommerce, the Option Pricing field within the form loses its price and currency on the front end. The issue occurs when WooCommerce’s multicurrency feature is enabled.
Workaround
This issue is fixed. Updating to the latest version solves it on your site, so you only need this workaround if you can’t update yet.
Please, make sure of having a full site backup of your site before proceeding.
- Open Edit …/wp-content/plugins/gravityforms-multilingual/classes/compatibility/woocommerce/class-gfml-currency.php file.
- Look for line 84.
- Replace:
$price = preg_replace( [ '~&.*?;~', '~[p{Sc}s]+~u' ], '', $price ); - With:
///compsupp-7615 - Manually add your currency: ie. USD, EUR... $pattern = '~&.*?;|[p{Sc}s]+|b(?:USD|EUR|Kr|JPY|GBP)b~u'; $price = preg_replace($pattern, '', $price);
Still Seeing This Issue?
If updating doesn’t fix it, ask a support question and we’ll look into it with you.
Ask a support question