diff --git a/app/views/shop/shop/_products.html.haml b/app/views/shop/shop/_products.html.haml index 3456ec29e7..f44d400263 100644 --- a/app/views/shop/shop/_products.html.haml +++ b/app/views/shop/shop/_products.html.haml @@ -33,7 +33,7 @@ %td %span{"ng-show" => "(product.variants.length == 0)"} %input{type: :number, - value: 0, + value: nil, min: 0, max: "{{product.on_demand && 9999 || product.count_on_hand }}", name: "variants[{{product.master.id}}]", diff --git a/app/views/shop/shop/_variant.html.haml b/app/views/shop/shop/_variant.html.haml index 9a71ac8b39..73b8b80f1e 100644 --- a/app/views/shop/shop/_variant.html.haml +++ b/app/views/shop/shop/_variant.html.haml @@ -4,7 +4,7 @@ %td {{variant.options_text}} %td %input{type: :number, - value: 0, + value: nil, min: 0, max: "{{variant.on_demand && 9999 || variant.count_on_hand }}", name: "variants[{{variant.id}}]", id: "variants_{{variant.id}}"}