SimplCommerce icon indicating copy to clipboard operation
SimplCommerce copied to clipboard

Demo: Wishlist: Negative counts in cart

Open Horovtom opened this issue 4 years ago • 4 comments

Using the wishlist one can add negative amounts of items to the cart.

Horovtom avatar Jan 21 '21 16:01 Horovtom

Easy fix:- ..\SimplCommerce\src\Modules\SimplCommerce.Module.WishList\Areas\WishList\Views\WishList\PrivateList.cshtml Add min="1" for the input type

<div class="form-group row"> <label class="col-sm-4 col-form-label">@Localizer["Quantity"]</label> <div class="col-md-8"><input type="number" name="qty" class="quantity-field" value="@item.Quantity" min="1"/></div> </div>

SwarnenduDasKW avatar Feb 03 '21 21:02 SwarnenduDasKW

Easy fix:- ..\SimplCommerce\src\Modules\SimplCommerce.Module.WishList\Areas\WishList\Views\WishList\PrivateList.cshtml Add min="1" for the input type

<div class="form-group row"> <label class="col-sm-4 col-form-label">@Localizer["Quantity"]</label> <div class="col-md-8"><input type="number" name="qty" class="quantity-field" value="@item.Quantity" min="1"/></div> </div>

Please add this in a new pull request

tavershimafx avatar Feb 26 '21 16:02 tavershimafx

hi, i added a control for this. pls. review. thanks. https://github.com/ouzsrcm/SimplCommerce/commit/b5e655a80f2583cad77b4269c6f1b6af59e02f8e

ouzsrcm avatar Mar 09 '21 14:03 ouzsrcm

@TATARPRO Created a PR with the fix. Thank you!!

SwarnenduDasKW avatar Mar 24 '21 04:03 SwarnenduDasKW