This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing issues with items disappearing from the cart when added from the category page, but not from the single product page, and this issue resolves when the WPML plugin is deactivated, it might be related to the WordPress memory limit. Solution: We recommend following these steps: 1. Increase the WordPress memory limit to at least 128MB. You can do this by adding the following code to your wp-config.php file:
Add this code above the line that says /* That's all, stop editing! Happy blogging. */. 2. Verify the WordPress memory limit in WPML -> Support to ensure it has been increased. 3. Delete all inactive plugins, flush the cache memory, and update any outdated plugins and themes.
If these steps do not resolve the issue or if the solution seems outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at WPML support forum for further assistance.
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.
Background of the issue:
I am trying to add Pokémon products to the checkout cart. The issue occurs when adding items from the category page.
Symptoms:
When items are added from the single product page, they stay in the cart. However, when adding from the category page, only the first item appears briefly before disappearing.
Questions:
Why do items disappear from the cart when added from the category page?
How can I ensure products remain in the cart when added from the category page?
Note: Don't paste the debug information directly on the message, use the correspondent field.
2.- Could you share some URLs and screenshots or a link to a video where the issue can be seen and reproduced? This way I will have a better understanding of this scenario.
1.- I was able to reproduce the issue in the original language, if you deactivate the WPML plugins does the issue persist or disappear?
2.- Please increase the WP memory Limit. Minimum requirements are 128Mb: https://wpml.org/home/minimum-requirements/
You can add this to wp-config.php to increase WP memory:`
Could you create a staging site with a copy of the live site where we can run further tests without affecting the production site? I have set your next message private so you can securely share the access credentials to the staging site.
Important note: The memory limit you mentioned is the PHP memory limit which is different than the WordPress memory limit. The code I provided increases the WordPress memory limit.
I will start running tests in the staging site and I will get back to you as soon as I get more information.
I followed these steps:
- Deleted all the inactive plugins
- Increased the WordPress memory limit
- Flushed the cache memory
- Updated the outdated plugins and themes
- Now the issue disappeared
Could you confirm that the issue was solved on the staging site?
I have set your next answer private so you can share the access credentials to the live site. Please don't forget to create a full backup of the site before sharing the credentials.