Skip Navigation

[Resolved] Adding additional products to chinese cart makes first product revert to english

This support ticket is created 6 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 23 replies, has 2 voices.

Last updated by Shane 6 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#810785
1869663-cart_still_one_item_chinese.png
1869663-cart_one_item_chinese.png

When I add one product in Chinese language to the cart, everything is OK, but when I try to add one more product to the cart, the second product doesn't get added to the cart and some strings from the first product revert back to the english (default language).

This only happens when I add a new report first (a type of product which has variations), and after that I try to add an aged report (a simple product without any variations)

Link to the product with variations:
hidden link

Link to the page where you can add a product without variations:

hidden link

I expected to see:
Two products in the cart

Instead, I got:
one product with delivery days displayed in english and they were in chinese before I tried to add one more product.

We suspect there is an issue with the View in question for adding the product to the cart when the cart is not empty.
Can you look into it and see if there is a solution to this problem?

#812890

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jacques,

Thank you for contacting our support forum.

However it seems that this was opened in the wrong forum. For translation issues these are generally handled in our WPML forums as they are better able to assist with translation issues.
https://wpml.org/forums/forum/english-support/

Thanks,
Shane

#838524

Hello Shane,

Please read carefully what I wrote, especially this part:

"...but when I try to add one more product to the cart, the second product doesn't get added to the cart..."

I already wrote to WPML support and Yvette from your team suggested that I should write to you, because it seemed to them that this is the views related problem.

Here is the link to the opened ticket on the wpml forum, so that you can better understand the problem and why she thinks it it Toolset related:

https://wpml.org/forums/topic/when-i-add-second-product-to-cart-part-of-the-first-switches-back-to-english/

Thank you,

#843346

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jacques,

Thanks for the information, However the cart page isn't created by views.

Could you try disabling views and performing the same action and let me know if the issue still remains ?

Thanks,
Shane

#873034

Hi Shane,

The issue remains, even without the views, so definitely it is not Toolset that is causing this. The problem is that it is not woocommerce neither. I have no problem adding more products in the cart in English language, only in Chinese (and only if I add aged reports after new reports, which are different types of products), so it must be WPML that is causing this problem.
Can you please confirm this, so that I could go back to the wpml forum to try to solve this problem?

Best regards,

#873808

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jacques,

Yes if the problem occurs even after disabling views then yes its a translation issue. Our Views plugin does not affect the Cart page in any way at all.

Thanks,
Shane

#900931
2168488-NotWhatIAskedFor.png

Hello again,

I have been going through this issue with Yvette, and she concluded the problem is actually Toolset related, as you can see in this WPML support thread (I attached the most relevant image from the thread):

https://wpml.org/forums/topic/when-i-add-second-product-to-cart-part-of-the-first-switches-back-to-english/page/2/

I hope we can resolve this as it is the sole remaining relevant bug on the website, the client is pressuring us on that issue and withholding payment for an otherwise fully functional product.

Thank you in advance.

#900949

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jacques,

Yes i'm currently testing this to report to our team.

Thanks,
Shane

#900956

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jacques,

I tried using the duplicator package from the website but its not working.

Would you mind installing the All In One Migration plugin so that I can get a backup using that plugin?

Thanks,
Shane

#902005

Hello Shane,

I had those problems as well due to shared hosting limitations. Please try the two step backup, it worked for me. Also, I installed the All in one WP migration plugin as well, just in case.

Please let me know if there is anything else you need.

Best regards,

#902210

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screen Shot 2018-05-22 at 2.35.05 PM.png

Hi Jacques,

This is strange as i'm not able to replicate the issue here on this test site, see screenshot

Could you record a video on how I can replicate the problem ?

Thanks,
Shane

#902728

Hello Shane

yes this is strange indeed as we have this problem across multiple machines and in different locations.

We will retest from scratch again tomorrow and get back to you.

Jack

#902876

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jacques,

Please let me know as soon as you test this.

Also please provide exact steps. Looking forward to hearing from you soon.

Thanks,
Shane

#903718

So we retested everything: we recreated reports files and deleted old ones, started with new machines, deleted histories, rebooted etc to start on a clean environment and the bug is still there.

It seems to work the very first time then try again and no older report can be added ever again.

According to the screen capture you send, you do things correctly, but here are the steps just in case:

1) hidden link
2) Click on green button to order new report
3) Choose any country in drop down list
4) Type a name and address and click on blue button
5) On Cart click on blue button to "add more"
6) Back on homepage click on "order older reports" which is the underlined geen text under the first green button you clicked previously.
7) Click on Germany = which is about the 50th entry in the drop down list. Do not enter anything in the name box and click on blue button.
8) There will be 2 companies listed there. Pick one and click.
9) On the cart next, you will see that the Older report company you just added does not show and the previous report is now half in English.

If it works first time, simply delete the cart and redo again.

Big problem...

Best regards
jack

#903945

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jacques,

I need to do some debugging on this.

I was able to replicate it on my local copy.

Could you let me know where this text is defined? Was it hardcoded into the theme ? I'm not able to find it on the string translations list.

Thanks,
Shane