[Resolved] Proceed to checkout-button goes to default language checkout
This thread is resolved. Here is a description of the problem and solution.
Problem:
I'm translating a Finnish website with Woocommerce to English, using The7 as theme.
Everything's going okay so far but I can't get English checkout to work. I've clicked the plus-icon for my Finnish Checkout and Cart pages to create the english translations, then I copy the content from original Finnish pages, and change the texts and leave shortcodes as they were. I have also tried to use the Translation management method...
Cart dropdown shows two buttons: View cart & Checkout. View cart goes to melomo.fi/en/cart, but Chekcout goes to melomo.fi/kassa which is the default Finnish cart page.
Solution:
Go to Woocommerce -> Settings -> Payments-tab and in Klarna checkout I had the finnish checkout link in the "Custom Checkout Page - Finland " field. It seems the checkout pages work as intended now in Finnish and English.
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.
Hi, I'm sorry this is the second ticket for this issue, the previous one got buried since the site translation was on hold, but now it's live.
I'm translating a Finnish website with Woocommerce to English, using The7 as theme.
Everything's going okay so far but I can't get English checkout to work. I've clicked the plus-icon for my Finnish Checkout and Cart pages to create the english translations, then I copy the content from original Finnish pages, and change the texts and leave shortcodes as they were. I have also tried to use the Translation management method...
Cart dropdown shows two buttons: View cart & Checkout. View cart goes to melomo.fi/en/cart, but Chekcout goes to melomo.fi/kassa which is the default Finnish cart page. By studying past threads, I think it's Klarna thats causes the issue. The links to solutions in those old threads are hidden, would you have up to date info how to fix this issue? Thank you!
Can you send me some links from the old threads that you mentioned, please? I just want to see if I can access the hidden parts. Also, it would be great if you could give me access to the dashboard area of your website so I can have a closer look at this. I'm sure we'll be able to sort things out together.
The next reply is set to be private so you can safely send me the credentials.
Thank you for giving me access to the dashboard area of your website. I didn't need access to FTP so don't worry about that.
I checked the checkout page and I could see that if I try to change to the English version from here hidden link by using the English flag (from the language switcher), everything works fine.
This means that there's something wrong in the way that the cart area from the top right corner is getting the translation for the checkout page. Can you tell me which is the option that you used to add this element, please? I looked at the Top Bar & Header section from the Theme Options and I could find a cart element added to the microwidgets in navigation area. Is this the element that's taking care of the cart element? I want to make sure that I'm checking the right option.
The language switcher is from WPML-> Languages -> Menu language switcher. There are two menus since the7-theme needs them for anchor links, but that shouldn't matter 🙂
The cart is indeed added from Microwidgets in Theme Options -> Top bar & header.
As I can see, you modified the main theme and you're using a child theme too. Our plugin is compatible with the The7 theme but one of the changes you made on the main theme (or in the child theme) might be causing this issue.
That's why, in order to make sure that this is not an issue caused by one of the custom changes, please install the main clean The7 theme, and tell me if the issue is still available. You can try to do this on a staging website in order not to change the live website.
Hi, I migrated a copy of the site to a sandbox server and tried changing the theme and disabling some plugins.
I can confirm that disabling the plugin "WooCommerce Klarna Gateway" fixed the Checkout-link but of course the checkout doesn't work then, it's just shortcodes there.
Can we use the Plugin editor to fix the problem? Or is this a job for Klarna support? With plugin editor I can see the plugin has code like this:
// Get current customers selected language if this is a multi lanuage site.
$iso_code = explode( '_', get_locale() );
$this->shop_language = strtoupper( $iso_code[0] ); // Country ISO code (SE).
switch ( $this->shop_language ) {
case 'NB':
$this->shop_language = 'NO';
break;
case 'SV':
$this->shop_language = 'SE';
break;
Since we have gone bilingual with this site, we are in a process of upgrading Klarna to accept international payments, which I think means we will replace the plugin (??) but I'm not sure. Can we keep this thread unlocked until we have made the upgrade?
I think I found the reason for the problem and fixed it.
I went to Woocommerce -> Settings -> Payments-tab and in Klarna checkout I had the finnish checkout link in the "Custom Checkout Page - Finland " field. It seems the checkout pages work as intended now in Finnish and English.