Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 33 replies, has 3 voices.

Last updated by Long Nguyen 1 year, 10 months ago.

Assisted by: Long Nguyen.

Author Posts
July 27, 2023 at 2:37 pm #14111793

philippH-28

I am trying to: Have my customers calculate shipping and check out in their language.

Link to a page where the issue can be seen: put this in the cart hidden link

Then go to cart and choose USA for example hidden link

I expected to see: The correct values being calculated.

Instead, I got: Instead there are wrong values or no shipping methods offered at all. This has now cost me hundreds of euros in some cases because of too low shipping prices and probably even more in lost sales in the cases where no shipping method is offered.

The shipping classes are translated. I tried mentioned workaround of re-saving shipping settings, saving original product and translation. I used the feature so sync classes in products and variations. Nothing is working. I need a fix for this urgently!

Thanks
Philipp

July 29, 2023 at 3:25 pm #14121549

philippH-28

Hello, I have gotten no reaction at all on this. Please take a look.

Thanks
Philipp

July 30, 2023 at 6:40 am #14122151

Subash Chandra Poudel

Hi Philipp,

Sorry for the delayed repones due to the weekends.

I need a few more insight on the issue to determine what could be the issue can you please let me know:

- Did the issue started after some changes or updates? Or was it like this from the beginning?

- Do you use default shipping setup of WooCommerce or use some custom setup? If you use default WooCommerce setup how exactly is the shipping setup?

- Will it be possible for you to setup a staging/test site where we can test the issue further without affecting your live site?

I have enabled a private reply for you in case a staging site is possible and you want to share access to the staging site for me to check the issue further.

Regards,
Subash

July 30, 2023 at 11:34 am #14122439

Subash Chandra Poudel

Thank you for the details.

However it looks like the user access you sent don't have the full admin privilege so I am not able to check the issue properly. For example I don't see Settings options on the site, also not all WPML options are available.

Can you please check the user again or share a full admin user credentials?

I have enabled a private reply for you again to share the details again if required.

July 30, 2023 at 12:27 pm #14122569

philippH-28

I updated the privileges of the existing user.

July 31, 2023 at 8:14 am #14124717

Subash Chandra Poudel

Hi there,

Thank you for that.

On the staging site I deactivated all Non WPML and WooCommerce plugins to test but that didn't helped with the issue ( I left them deactivated for simplicity of testing ).

Latter when I went to: WooCommerce -> WooCommerce Multilingual & Multicurrency -> Categories and clicked on the "Synchronize Product categories assignment in content" and "update products to use same categories..." button the issue seems to be solved.

So the issue seems to be caused because the products in the site are not properly synced with their translation. On your live site can you please try the following and see if it fixes the issue:

- Backup the site completely to prevent any issues.

- Go to WooCommerce -> WooCommerce Multilingual & Multicurrency -> Status ->
Troubleshooting ( link at the end of the page )
- Select all troubleshooting options and allow it to run completely.
- Also go to WooCommerce -> WooCommerce Multilingual & Multicurrency -> Categories and if you see "Synchronize Product...." or "update products..." button there click it and allow it to run.

If the issue persist, will it be possible for you restore the test site to the same state of the live site and resend the working admin credentials ( if required).

Regards,
Subash

July 31, 2023 at 3:56 pm #14128715

philippH-28

It did not work.

On these steps the numbers run down, but after refreshing they show up again.

Nothing in the debug log.

I can recreate the state before your started on staging. Please enable private response for that.

Can you tell me what actually needs to be translated in this case? Don't really get why WPML interferes at all.

Thanks
Philipp

CleanShot 2023-07-31 at 17.53.22.png
August 1, 2023 at 4:03 am #14130131

Subash Chandra Poudel

Hi there,

The troubleshooting option counts might go back to the original count and is normal as that shows the total contents that can be processed.

Can you please recreate the staging site from the current state of the live site and let me know so that I can troubleshoot further and try to find the exact steps that solved the issue before?

I have enabled the private reply for you share the credentials again.

Regards,
Subash

August 1, 2023 at 5:43 pm #14136549

philippH-28

There is no private reply option, so I set everything up with the same credentials as before so you can continue troubleshooting.

Greetings
Philipp

August 3, 2023 at 8:26 am #14146841

Subash Chandra Poudel

Hi Philipp,

Sorry for the delayed response here.

I have enabled a private reply for you again. Please let me know with the details once the current state of the live site is recreated on the staging site.

Regards,
Subash

August 3, 2023 at 8:35 am #14147133

philippH-28

As I said before:

I set everything up with the same credentials as before so you can continue troubleshooting.

You are good to go.

Thanks
Philipp

August 4, 2023 at 11:47 am #14154747

Subash Chandra Poudel

Hi Philipp,

Sorry for the confusions.

I am still working on the issue. I tried copying the site to my localhost to troubleshoot it further but that didn't worked.

Still trying to find the exact cause of the issue. I will troubleshoot it further or try to find an exact way to replicate the issue then send you the updates after I get more insight on the issue or escalate the issue to our team.

Regards,
Subash

August 7, 2023 at 11:55 am #14163449

Subash Chandra Poudel

Hi Philipp,

Sorry for taking quite long to determine what the issue is exactly here. The issue also seems to be resolved

After further troubleshooting the issue seems to be caused by the child theme you have. I see in the child theme functions.php file from line 175-235 you have code to modify shipping method which seems to be causing the issue here.

Please followup with your child theme developer to remove or troubleshoot/fix the code I referenced above which should solve the issue.

Regards,
Subash

August 7, 2023 at 12:07 pm #14163499

philippH-28

Hello,

I had switched the theme before I even opened this thread. The issue persisted. The child theme can be ruled out.

Please take another look or escalate the issue if necessary.

I need a solution. It has been a long time and I tried to make clear how important this is. But after all this there has been no progress.

Thanks
Philipp

August 7, 2023 at 12:45 pm #14163819

Subash Chandra Poudel

Hi Philipp,

In the staging site, the issue is resolved when you comment out the code I referenced in my previous reply linked next:

https://wpml.org/forums/topic/shipping-classes-not-working-in-second-language/#post-14163449

So the issue seems to be related to child theme as far as I see in the staging site.

To escalate the issue I will need a clear process to replicate the issue on a default WordPress theme. If deactivating child theme does not resolved the issue in your live site, probably it could be resolved with the child theme code fix and also synchronizing everything in the WooCommerce as I expalined in the previous reply linked next:

https://wpml.org/forums/topic/shipping-classes-not-working-in-second-language/#post-14124717

I can sure, troubleshoot the issue further and escalate it if required but for that I will need to replicate the issue in the sandbox site without the Child theme.

Regards,
Subash

The topic ‘[Closed] Shipping classes not working in second language’ is closed to new replies.