This thread is resolved. Here is a description of the problem and solution.
Problem:
You are trying to translate the currency sign (лв.) to BGN on the English version of your site.
Solution:
First, ensure you have a backup of your site. Then, insert the following code into your theme's functions.php file:
add_filter("woocommerce_currency_symbol", "change_existing_currency_symbol", 10, 2); function change_existing_currency_symbol($currency_symbol, $currency) { switch ($currency) { case "BGN": // Assuming BGN is the currency code for Bulgarian Lev if (ICL_LANGUAGE_CODE == "en") { $currency_symbol = __("лв.", "your-domain-name-here"); } else { $currency_symbol = __("лв.", "your-domain-name-here"); // You can provide a different symbol for other languages if needed } break; } return $currency_symbol; }
Please check if this resolves your issue. If this solution does not work or seems outdated, or if it does not apply to your case, we recommend opening a new support ticket. We also highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at https://wpml.org/forums/.
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.
No supporters are available to work today on this forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
This topic contains 6 replies, has 2 voices.
Last updated by Kor 1 week, 3 days ago.
Assisted by: Kor.