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
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -
- 20:00 – 23:00 20:00 – 23:00 20:00 – 23:00 20:00 – 23:00 20:00 – 23:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

This topic contains 12 replies, has 2 voices.

Last updated by Kor 1 year, 9 months ago.

Assisted by: Kor.

Author Posts
July 24, 2024 at 4:37 pm #15999635

tomL-13

Background of the issue:
When I add a product to the cart on my site hidden link, the mini cart needs to show the current currency and not the primary. After a refresh, it works correctly.

Symptoms:
Adding a product to the cart in a secondary language and currency first opens the mini cart with the primary currency. After a refresh, it shows the correct currency.

Questions:
How can I make the mini cart show the current currency immediately after adding a product without needing a refresh?

July 24, 2024 at 4:54 pm #15999710

Kor

Thanks for your patience.

Here is the sandbox site hidden link . Please login and install the required theme and plugins to replicate the issue.

You can create test products and currencies.

July 24, 2024 at 6:08 pm #15999945

tomL-13

Ok, so I did everything, I added the theme, plugins, content ,products, etc.
The problem appears in the sandbox so u can check it deeply.

hidden link

the primary currency here is USD and not EUR but it doesnt matter,
so If I add a product in ILS, the mini cart opens and shows the currency in USD(primary currency), when I refresh- it works and shows it as expected.

Please help. Thanks.

July 25, 2024 at 3:09 pm #16004365

Kor

Thank you for your response.

I can see the issue now. Could you please inform me where I can locate the custom script used to create the mini cart hidden link ? I need this information to include in the report for our 2nd Tier Support to review.

Please note that we do not provide assistance with custom coding, as it is outside the scope of our support services. However, I will ask our 2nd Tier Support to investigate and see if the issue can be resolved without extensive customization.

July 25, 2024 at 3:48 pm #16004627

tomL-13

Hi,

The thing is the Mini cart works exactly like the default mini cart, just changes in the HTML... but same PHP,
And another thing, if there is something wrong, why after a refresh the mini cart shows the items in ILS(as original added to cart in ILS)...?
There is something.... with the WPML realtime update or something.

The mini cart is in tlinteractive theme then /woocommerce/cart/mini-cart.php

July 25, 2024 at 3:56 pm #16004643

Kor

Thanks for your reply.

I've just escalated this to our 2nd Tier Support and will get back to you once I've feedback.

July 28, 2024 at 6:55 am #16011694

tomL-13

Hi,

Thanks, waiting for a response to solve this issue,
Its something related to WPML.

July 30, 2024 at 6:09 am #16018595

tomL-13

Hello?
Im still waiting for a response to solve this bug...

July 30, 2024 at 9:53 am #16019775

Kor

Thanks for your reply.

I've checked the report and we have no updates yet. But I will let you know once I hear from them.

August 2, 2024 at 2:26 pm #16034012

tomL-13

Still waiting..........
This bug must be solved ASAP. Please.

August 2, 2024 at 4:23 pm #16034252

Kor

Thank you for your response.

I apologize for the inconvenience. Our sandbox site has crashed, and the backup isn't working. Could you please recreate the issue on this new sandbox site: hidden link so that I can escalate this to my leader for further attention?

August 3, 2024 at 1:31 pm #16035554

tomL-13

WTF?
Are u kidding me?
I am waiting a week to a fcking response,
I invested 2 hours to upload the new theme and everything,
U did nothing solving my problem
and now u want me to do it agian?

WTF is this support...........................................
I dont get it.......... for real!
thats not ok!

August 4, 2024 at 7:57 pm #16037123

Kor

Thanks for your reply.

I apologize for the inconvenience. Could you please share your Website WP admin access here again so I can replicate this issue on our sandbox site? I did escalate this to our 2nd Tier Support but the sandbox site expires while the report is in a queue for a review.

Also, I kindly ask for a snapshot of the site. Alternatively, with your permission, I can create one myself. For this purpose, I typically recommend using the free plugin "Duplicator." If you're already familiar with Duplicator (https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.

To guide you further, please adhere to these instructions:

1. View the Duplicator instructions video: hidden link

2. Consult WPML's instructions on providing supporters with a copy of your site: https://wpml.org/faq/provide-supporters-copy-site/

3. If the archive file exceeds 400MB, please use Duplicator's file filters to exclude cache, wp-uploads directory, media, and archive files.

Once you have the archive file ready, kindly share the link with us. You can utilize platforms like Google Drive, Dropbox, or similar for file sharing, as the snapshot file might be large.

Please note that your next reply will be private, visible only to you and me. You can paste the file link there. Rest assured that once the issue is resolved, I will delete the local site.

The topic ‘[Closed] Adding product to cart in secondary language(and currency), first opens the mini cart with the prima…’ is closed to new replies.