Home › Forums › Basel support forum › (urgent) Language switch to default EN in checkout page
(urgent) Language switch to default EN in checkout page
- This topic has 48 replies, 4 voices, and was last updated 5 years, 1 month ago by
Artem Temos.
-
AuthorPosts
-
October 26, 2019 at 7:41 am #152501
Elise NoromitMemberHello,
This issue did not relate to our theme. The problem was between WPML and Woocommerce. Now I have checked the new WPML version: when you add a product to cart and go to the checkout, checkout does not switch to the default language. WPML has fixed the issue.
Best Regards
October 26, 2019 at 7:51 am #152503
esthetisParticipantHi,
By switching to other theme like storefront, the problem was fixed….Then I think it was related to your theme in some way
October 26, 2019 at 9:21 am #152524
Elise NoromitMemberHello,
Now the problem has been fixed by WPML. Please check.
Best Regards
November 20, 2019 at 10:59 am #157974
esthetisParticipantSorry but the problem has not been fixed by WPML.
Please check our staging in private
By overwriting your code, the problme persits and this means it is related to your theme
November 20, 2019 at 1:59 pm #158016
Elise NoromitMemberHello,
Make sure you run the recent version of WPML set of plugins and update the site admin access, I have checked the front end and see the problem at your site.
Best Regards
November 20, 2019 at 2:02 pm #158018
esthetisParticipantYes it is the last versions WPML, please take the time to check it in our staging
November 20, 2019 at 11:02 pm #158102
Elise NoromitMemberHello,
I am checking the issue on the Storefront theme and I see the same problem, stop the video on the 6th second and you will see that after adding a product from the French store, I get to English checkout. https://gyazo.com/2b0aeaa8429041ec7c12939e0399d078
I am checking in my site which is on clean WordPress installation and has no other plugins and never had and when I am on the French store, I add product and get to the French checkout https://gyazo.com/40503990bb63cdebd11deaf6d487245e and you see the fields are in French.
Please check on the Storefront now.
Best Regards
November 21, 2019 at 7:06 am #158117
esthetisParticipantBut as we have the latest version of WPML, this means that WPML has still not fix the problem?
November 21, 2019 at 7:53 am #158124
Elise NoromitMemberHello,
I am not sure. You see as I told and shown it works properly on my testing site which is the clean installation without plugins. I suspect that the problem is caused by WPML Sticky Links or some other additional plugins which are not compatible with Woocommerce. And even when these plugins are deactivated the problem still remains. Try to reinstall all on the staging site and check again. Leave the plugins related to our theme and main WPML plugins: https://prnt.sc/pzy59p
Best Regards
December 2, 2019 at 12:34 pm #160536
esthetisParticipantHi again,
We have just update WPML and again the problem is not fixed.
We still have to replace with the following:
if (
! $is_admin || ( isset( $_POST[‘action’] ) && $_POST[‘action’] === ‘basel_ajax_add_to_cart’ ) || ( ‘admin.php’ === $pagenow && isset( $_GET[‘page’] ) && ‘wc-settings’ === $_GET[‘page’] )
) {
// Translate shop page ids
$this->add_filter_to_get_shop_translated_page_id();
}December 2, 2019 at 4:05 pm #160622
Elise NoromitMemberHello,
The problem occurs with Woocommerce Multilingual. We have submitted the notification again. Meanwhile, you can use the fixed code we have provided:
Try to edit the file wp-content/plugins/woocommerce-multilingual/inc/class-wcml-store-pages.php and replace this codeif ( ! $is_admin || ( 'admin.php' === $pagenow && isset( $_GET['page'] ) && 'wc-settings' === $_GET['page'] ) ) { // Translate shop page ids $this->add_filter_to_get_shop_translated_page_id(); }
with this one
if ( ! $is_admin || ( isset( $_POST['action'] ) && $_POST['action'] === 'woodmart_ajax_add_to_cart' ) || ( 'admin.php' === $pagenow && isset( $_GET['page'] ) && 'wc-settings' === $_GET['page'] ) ) { // Translate shop page ids $this->add_filter_to_get_shop_translated_page_id(); }
as shown in the screenshot http://prntscr.com/pauyvg
Kind Regards
December 27, 2019 at 11:16 am #165215
esthetisParticipantHi again,
Please fix the issue that the customers are calling us about the problem.
The problem lasts for many months now.
For each WPML update we have to take attention to replace the right code.
Please fix it now.
regards
December 28, 2019 at 12:17 pm #165219
Artem TemosKeymasterWe have contact WPML a few times about the issue. Please, report this from your side as well. We are not able to fix this in our theme since it is not our theme bug.
January 13, 2020 at 8:07 am #167632
Artem TemosKeymasterHello,
Please, send us your website access so we can replicate the issue while working with WPML team. We don’t have this problem on our website.
Kind Regards
January 13, 2020 at 8:15 am #167637
esthetisParticipantbelow access to staging
January 14, 2020 at 12:43 pm #167872
Artem TemosKeymasterTry to enable this option in WPML configuration https://gyazo.com/a5a7b012da02f9a9d5c310ce9795ac48
January 15, 2020 at 7:03 am #168000
Artem TemosKeymasterHave you tried to enable the option? Please, notify us about the result.
Thank you in advance.
January 15, 2020 at 7:25 am #168006
esthetisParticipantHi,
I thought you have tested it before.
I have to wait for the update in order to see if it fix the problem.
Meanwhile, please try to restore the origianl WPML file and enable the option.
REgards
January 20, 2020 at 6:58 am #168854
Artem TemosKeymasterTry to reinstall WPML from scratch and check the issue with this option turned on/off.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register