[Resolved] Currency display issue in popup with WPML and BeTheme
This thread is resolved. Here is a description of the problem and solution.
Problem: You are using WPML with the BeTheme theme and WooCommerce, and have encountered an issue where the currency display in a product quickview popup does not update to the selected currency (e.g., Euro - EUR) and instead shows the default currency (Polish Zloty - PLN). This issue occurs despite the selected currency displaying correctly across the rest of the site. Solution: If you're experiencing this issue, we recommend you try the following steps: 1. Ensure you make a full backup of your website. 2. Open your functions.php file. You can do this in Appearance > Theme file editor > functions.php. 3. Add the following code:
This solution might be irrelevant if it's outdated or not applicable to your case. We 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. If the issue persists, please open a new support ticket.
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.
Background of the issue:
I am using WPML with the BeTheme theme and WooCommerce. I’ve implemented a product quickview popup, but I’ve encountered an issue with currency display. After switching the currency using WPML Currency Switcher or the Currency Switcher for WooCommerce plugin, the popup displays prices in the default currency (Polish Zloty - PLN), even if the user selects another currency (e.g., Euro - EUR). The selected currency is displayed correctly across the rest of the site, but not in the popup. I attempted to switch the currency in the popup via PHP using wcml_switch_currency and get_woocommerce_currency(), but the popup does not reflect the selected currency. I ensured the woocommerce_multicurrency cookie is set correctly, but this did not resolve the issue. Link to a page where the issue can be seen: Test server ip 159.223.210.131 address:fedrs.eu
Symptoms:
The popup displays prices in the default currency (PLN) instead of the selected currency (e.g., EUR).
Questions:
How can I properly configure the currency to update in the popup?
Are additional WPML settings required to handle popups correctly?
I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated.
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.
Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.
IMPORTANT
- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link
I'll sent you further instructions, depending on what I find.
In your test website i cant activate betheme i don't have new code, that's why i deregister my code from my own website, please when you will complete testing deregister betheme code.
i cant use template because is error time out, please add more php input
PHP Time Limit
60
Current time limit is OK, however 180 is recommended.
PHP Max Input Vars
1000
Minimum 5000 is required
I was able to reproduce the issue in the testing environment, thanks. We still need to check the issue with BeTheme active, so please don't deactivate it yet. I'll let you know once we hear from our developers.