bug in adding quantity to shopping cart

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 anos atrás
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))
3 anos atrás
Had this issue, seems that it works when you disable "ordersettings.autoupdateordertotalsoneditingorder".
3 anos atrás
@ali_ns2
If the team has not yet replied to this post, then it may be best to create an issue in GitHub.
3 anos atrás
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))
3 anos atrás
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.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.