This thread is resolved. Here is a description of the problem and solution.
Problem:
You are using WPML for a multilingual setup with different domains for English and French sites and want to have different prices for products on each site. However, when you change the product price on the main site, it automatically updates on the subsite, but not vice versa. Additionally, the subsite shows different prices when logged in versus not logged in.
Solution:
1) To address the issue of price not being editable in the secondary language, you need to disconnect the translation from the original. This allows you to edit the price in the secondary language independently, in the absence of WCML's multicurrency mode and exchange rates setup.
2) For the issue of different prices when logged in versus not logged out, it was found that the theme and plugins were outdated. We recommend updating all plugins and the theme to ensure compatibility and functionality. Additionally, check with your server or service provider to disable all caches and firewalls that might be causing issues.
If these solutions do not resolve your issues or if they seem outdated, 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 problem 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.
Tagged: Exception, Not WPML issue
This topic contains 0 replies, has 0 voices.
Last updated by Waqas Bin Hasan 5 days, 12 hours ago.
Assisted by: Waqas Bin Hasan.
Author | Posts |
---|---|
March 18, 2025 at 11:40 am #16829838 | |
rishitV |
Background of the issue: Symptoms: Questions: |
March 18, 2025 at 12:10 pm #16829983 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Reference to our recent chat, I see you got disconnected. I waited for a long time and have finally moved to this ticket. I need to take a closer look at your site. So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated. Your next answer will be private, to share this information safely. Also provide detailed steps to reproduce the issue and links to pages in the admin and on the frontend. IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also. See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security. P.S.: If you don't see the section for providing access information, do not write in the message box or the information may appear as public. Regards. |
March 19, 2025 at 1:42 pm #16835584 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the updates, I am working on this and 'll get back to you as soon as I find something or have a solution. |
March 20, 2025 at 8:07 am #16838399 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience and cooperation. I tried to understand the problem but looks like setup isn't correct in terms of different domain per language. Because both languages are using the same domain (hidden link). This is causing an unwanted override to always French products. Please watch my hidden link">screen recording to understand this. As you can see that by default all products are in French and even trying to switch to English from the language switcher, which has /product/ in the URL, as well as the product's translated slug. For example: - French: hidden link (secondary language) but always redirects to the French product. Secondly, WCML is needed with WooCommerce for the products translations to work correctly. I've also updated WPML plugins to the latest versions and trying to check with minimal setup. But due to the same domain for both languages, I'm unable to observe the issue. Since you mentioned that you're using different domain per language, please correct this setup to use 2 different domains, so I can see the products in both languages and can compare/investigate what you reported earlier. |
March 20, 2025 at 9:02 am #16838692 | |
rishitV |
Hi yes I'm using different domain for it hidden link for English You can login into above domains using same credentlis as well. |
March 20, 2025 at 9:20 am #16838867 | |
rishitV |
Also above both domain shared the same database & one other thing is if we change the price of any product on french site it will not change from backend & frontend both hidden link |
March 20, 2025 at 1:49 pm #16840358 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the updates, I'll check again and 'll get back to you accordingly. However, please note that, as I mentioned earlier, since French is the secondary language, any change made directly in there, 'll not be synced to the primary language. Because French is a translation and workflow is like from Primary to Secondary language. In short, if you make any change directly in the secondary language or translation, you'll need to update that in primary language manually. |
March 20, 2025 at 2:07 pm #16840445 | |
rishitV |
Yes but we don't need to update anything in primary language. |
March 21, 2025 at 6:24 am #16842636 | |
rishitV |
Hello Kindly do need do any changs as we are working on it & we have rollback to our theme |
March 21, 2025 at 6:49 am #16842687 | |
rishitV |
Hello Are you working? Do not switch the theme. Kindly do not need any changes |
March 21, 2025 at 7:14 am #16842785 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience and cooperation. Both sites were using very older versions of the plugins and both were using different older plugins of the versions - see attached screenshots. I've updated these. There are still lot of active plugins outdated, as well as, the parent Woodmart theme is outdated. I'll recommend updating all these plugins and theme for continued support (i.e. bug fixes, compatibility, improvements, new features and etc). Please check hidden link">my screen recordings for an understanding, along with the descriptions below. There're are 2 problems: 1) Price not editable in secondary language, to enable that you need to disconnect the translation from the original which I've showed in last steps of my "screen-recording-1". Then you can edit the price in secondary language and make it different than the original. This should be resolved now, as you can also see in the recording, as well as, you can repeat the same for other products where you want different prices in different languages. Please note that since you are not using multicurrency in WCML, which enables you to set different prices for different currencies (leveraging the exchange rates), the above mentioned is the only way of doing it. 2) Logged in vs Logged out: We just noted that I've switched theme and deactivated plugins which are reflecting while logged in but not logged out. During the investigation, I deactivated all plugins except WPML, String Translation, WooCommerce and WCML and switched to 2024 theme. This was reflected well while I logged in, but the logged out site kept showing no change. However, what's strange is that during investigation I logged out a couple of times for no reason and after logging back in, all the plugins were active and theme was back to yours. My "screen-recording-2" shows this behavior. So I believe this is to do with your server or service provider. Disable all caches, firewalls, any processes which are restoring content or etc. So it is stable and check again. Further, if this issue #2 remains intact, then please open a separate ticket, because as per our forum policy we can handle only one issue per session. |
March 21, 2025 at 7:17 am #16842815 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Well my apologies, I got your messages after I've completed my investigation. Since your last message "March 20, 2025 at 2:07 pm" (https://wpml.org/forums/topic/price-update-and-not-showing-correct-price/#post-16840445), I started my investigation and perhaps that was the reason the site kept restoring. |