diff --git a/app/views/shop/shop/_variant.html.haml b/app/views/shop/shop/_variant.html.haml index 73b8b80f1e..3dade13410 100644 --- a/app/views/shop/shop/_variant.html.haml +++ b/app/views/shop/shop/_variant.html.haml @@ -7,12 +7,14 @@ value: nil, min: 0, max: "{{variant.on_demand && 9999 || variant.count_on_hand }}", - name: "variants[{{variant.id}}]", id: "variants_{{variant.id}}"} + name: "variants[{{variant.id}}]", id: "variants_{{variant.id}}", + "ng-model" => "variant.quantity"} %td.group_buy %span{"ng-show" => "product.group_buy"} %input{type: :number, min: 0, max: "{{variant.on_demand && 9999 || variant.count_on_hand }}", - name: "variant_attributes[{{variant.id}}][max_quantity]"} + name: "variant_attributes[{{variant.id}}][max_quantity]", + "ng-model" => "variant.max_quantity"} %td.price.text-right {{ variant.price | currency }}