Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quantity concatenates instead of adding #134

Open
Blaise-Telfer opened this issue Dec 2, 2020 · 0 comments
Open

Quantity concatenates instead of adding #134

Blaise-Telfer opened this issue Dec 2, 2020 · 0 comments

Comments

@Blaise-Telfer
Copy link

Blaise-Telfer commented Dec 2, 2020

Untitled
If you have more than one item in the cart and you change the quantity, the "subtotal _ items" will concatenate the values instead of adding them. I.e, if you have qty of 1, 2, and 1, it will now appear as "subtotal 121 items", and it continues concatenating even if they're all returned to a qty value of 1. This is because the "qty" value is an integer, but is programmed to become a string if changed to any number greater than 1. You can see this on the console in my screenshot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant