Magento 2 Single Cart Item Issue

Job ID: 37622170

Budget: $10 – $30 USD

I'm on the lookout for a Magento 2 expert to resolve a specific JS or jQuery library error I'm experiencing on my ecommerce site. The bug affects the adding of products to the cart. Interestingly, the product does get added successfully, but when adding new product the old one gets removed if in a different category
When you add multiple products from the same category, it adds more than one product. However, when you add a product from a different category, the previous products in your cart will be replaced with the new product.

Here's what's required:

- A thorough investigation of why the cart count fails to increment
- An appropriate fix to ensure accurate cart count across all browsers and devices

A potential candidate should have the following:

- Proven experience with Magento 2 troubleshooting
- Proficiency with JavaScript and jQuery library
- The ability to test across browsers/platforms for consistency

After your successful intervention, my customers should be able to add multiple items to their cart and see the correct number reflected in the cart count on all devices and browsers.
Related categories: JavaScript AJAX Magento jQuery / Prototype