Hi

I updated my website to nopc 3.0

Everything is working fine, however its a strange problem, when I try to add qty of more then 1 i.e. say 3 or 4 it adds only 1 to the cart but when I update the qty on shopping cart it works fine.

Not sure why is this happening I tried to debug and I see its failing to match at this point


Catalog controller :

  int quantity = 1;
            foreach (string formKey in form.AllKeys)
              
                if (formKey.Equals(string.Format("addtocart_{0}.EnteredQuantity", productVariantId), StringComparison.InvariantCultureIgnoreCase))
                {
                    int.TryParse(form[formKey], out quantity);
                    break;
                }
          
            #endregion


View markup
  @if (!Model.DisableBuyButton || !Model.DisableWishlistButton)
    {
        @Html.LabelFor(model => model.EnteredQuantity, new { @class = "qty-label" })<text>:</text>
        @Html.TextBoxFor(model => model.EnteredQuantity, new { @class = "qty-input" })
    }
    @if (!Model.DisableBuyButton)
    {
        <input type="submit" name="addtocart-@(Model.ProductVariantId)" class="buttons"  style=" font-size:18px; font-family:'PT Sans Narrow'; font-weight:bold; padding:10px; cursor:pointer; " value="@(Model.AvailableForPreOrder ? T("ShoppingCart.PreOrder") : T("ShoppingCart.AddToCart"))" />
    }

It returns the value as price_2803.EnteredQty only and fails in the match

Any clues will be really helpful!