You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We search for products in the cart items first and then the list of products, see here.
That's a problem when it comes to the quantity number, which we can see in the following scenario:
Add single product 3x to cart
Refresh archive page
Add same single product to cart
View tracking data and the quantity is set to 3
Ideally we should be setting the quantity back to 1. Also is it really relevant to search through cart data, even though the product ID matches, we might have added one with a discount / addon which could make the price different. We'll need to log this in a separate issue.
Steps to reproduce:
Setup extension for tracking add to cart events
Create a simple product
Create a page with the [products] shortcode
In an incognito window visit the archive page
Add the single product to the cart 3 times
Confirm each event is tracked for a single quantity being added
Refresh the archive page
Add the same single product to the cart
Confirm the event now has a quantity of 3 (even though we are adding the 4th item)
Expected behavior:
The quantity always to be tracking the amount we are adding to the cart
The product price to be reflective of the cart item we are adding, and not a previously stored value of the product price
The text was updated successfully, but these errors were encountered:
Describe the bug:
This is a followup from #386
We search for products in the cart items first and then the list of products, see here.
That's a problem when it comes to the quantity number, which we can see in the following scenario:
Ideally we should be setting the quantity back to 1. Also is it really relevant to search through cart data, even though the product ID matches, we might have added one with a discount / addon which could make the price different. We'll need to log this in a separate issue.
Steps to reproduce:
[products]
shortcodeExpected behavior:
The quantity always to be tracking the amount we are adding to the cart
The product price to be reflective of the cart item we are adding, and not a previously stored value of the product price
The text was updated successfully, but these errors were encountered: