bug in adding quantity to shopping cart

2 months ago
the added quantity is always 1 regardless of the entered value

there is a bug in the file "ProductAttributeParser.cs" line 920

it should be:

if (formKey.Equals($"addtocart_{product.Id}.AddToCart.EnteredQuantity", StringComparison.InvariantCultureIgnoreCase))

instead of

if (formKey.Equals($"addtocart_{product.Id}.EnteredQuantity", StringComparison.InvariantCultureIgnoreCase))
2 months ago
Had this issue, seems that it works when you disable "ordersettings.autoupdateordertotalsoneditingorder".
2 months ago
@ali_ns2
If the team has not yet replied to this post, then it may be best to create an issue in GitHub.
1 month ago
Hi. I have not been able to replicate the problem with the current source code and standard theme. Perhaps the problem is in your theme and not in the source code.

ali_ns2 wrote:
the added quantity is always 1 regardless of the entered value

there is a bug in the file "ProductAttributeParser.cs" line 920

it should be:

if (formKey.Equals($"addtocart_{product.Id}.AddToCart.EnteredQuantity", StringComparison.InvariantCultureIgnoreCase))

instead of

if (formKey.Equals($"addtocart_{product.Id}.EnteredQuantity", StringComparison.InvariantCultureIgnoreCase))
1 month ago
Yep, all is ok with the specified source code, but there is a bug in editing existing orders details in the admin area, the reason as noticed above is the incorrect work of auto-update order when the  
ordersettings.autoupdateordertotalsoneditingorder
is enabled.
I have reopen the initial issue.