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?
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');
I have escalated the issue to our compatibility team for further debugging, I will update you as soon as I will receive any feedback from them.
Thanks
The topic ‘[Closed] WPML Causes Issues with Adding Multiple Products to Cart’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.