Some messages as "The maximum quantity allowed for purchase is {0}." are displayed twice. One time in HTML and one time in alert window.
But in the alert message, latin characters are not converted. Example in french "La quantité maximale autorisée pour l'achat est de {0}" appears as below "La quantité maximale autorisée pour l'achat est de 3"
This problem already existed in 1.9.
How we can deactivate javascript alerts or change the code ?
Follow the next steps: 1. Open \Views\Catalog\ProductTemplate.SingleVariant.cshtml file 2. Remove the following code:
@if (errors.Count > 0) { var addToCartWarningsSb = new System.Text.StringBuilder(); for (int i = 0; i < errors.Count; i++) { addToCartWarningsSb.Append(errors[i]); if (i != errors.Count - 1) { addToCartWarningsSb.Append("\\n"); } }
When updating qty in shopping cart, max and min qty are correctly checked but no alert occurs and no message is visible.
I think that the message displayed in product box when adding to shopping cart and qties are wrong shoud be displayed too in shopping cart when updating quantities. It is the reason of my question.