Skip Navigation

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
- 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 -
- 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 -

Supporter timezone: Asia/Kathmandu (GMT+05:45)

This topic contains 0 replies, has 0 voices.

Last updated by easy-plus-software-wllE 1 day, 5 hours ago.

Assisted by: Shekhar Bhandari.

Author Posts
February 17, 2025 at 8:27 am #16712036

easy-plus-software-wllE

Background of the issue:
I am trying to add multiple different products to the cart using WPML. When I add a single product, it works as expected. However, when I add multiple different products, the second product initially appears in the cart but disappears after a page refresh. If I add the same product twice, it remains in the cart. Disabling WPML resolves the issue, confirming it as the cause. Link to a page where the issue can be seen: hidden link

Symptoms:
The second product disappears from the cart after a page refresh when multiple different products are added. The issue does not occur when the same product is added twice.

Questions:
Why does the second product disappear from the cart after a page refresh when using WPML?
How can I resolve the issue of products disappearing from the cart without disabling WPML?

February 20, 2025 at 12:28 pm #16729508

easy-plus-software-wllE

as you asked in chat I send the database and wp-content file. can you please tell me the status?

February 20, 2025 at 2:40 pm #16730349

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I haven't received the wp-content and database backup till yet, can you provide me the links to download it so I can test it further?

Look forward to your reply.

Thanks

February 24, 2025 at 10:20 am #16740137

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Can you please go to comment the below code or remove it for some moment and check if it helps? .../wp-content/themes/gostore/framework/woo_functions.php

function gostore_update_tini_wishlist() {
	die(gostore_tini_wishlist());
}

add_action('wp_ajax_gostore_update_tini_wishlist', 'gostore_update_tini_wishlist');
add_action('wp_ajax_nopriv_gostore_update_tini_wishlist', 'gostore_update_tini_wishlist');

Look forward to your reply.

Thanks

February 25, 2025 at 12:50 pm #16745759

easy-plus-software-wllE

I am still facing the problem. I comment the code but still same issue.

February 25, 2025 at 4:46 pm #16747165

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I am sorry for the trouble, I can still see the issue.

To troubleshoot the issue further, I created a public test site here: hidden link

You can visit shop page here: hidden link

I have made a small change on the sandbox site: .../wp-content/themes/gostore/framework/woo_functions.php and modified the following code

add_filter( 'wcml_multi_currency_ajax_actions', 'gostore_wcml_multi_currency_ajax_actions_filter' );
if( !function_exists('gostore_wcml_multi_currency_ajax_actions_filter') ){
	function gostore_wcml_multi_currency_ajax_actions_filter( $actions ){
		$actions[] = 'remove_from_wishlist';
		$actions[] = 'gostore_ajax_search';
		$actions[] = 'gostore_load_quickshop_content';
		$actions[] = 'gostore_update_cart_quantity';
		$actions[] = 'gostore_load_product_added_to_cart';
		$actions[] = 'ts_get_product_content_in_category_tab';
		$actions[] = 'ts_elementor_lazy_load';
		$actions[] = 'gostore_tiny_cart_filter';
		return $actions;
	}
}

Can you check if this helps, for me it looks like it's fixed.

Thanks

February 25, 2025 at 7:14 pm #16747595

easy-plus-software-wllE

I added to code to the live website but still same problem.