From d68551c6ebe61c0022924cd32cc6ece9edf89097 Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Thu, 16 Jan 2014 16:09:03 +1100 Subject: [PATCH] Patching an issue with quantity fields showing for products with variants --- app/views/shop/_products.html.haml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/shop/_products.html.haml b/app/views/shop/_products.html.haml index 3019d22967..494a03412e 100644 --- a/app/views/shop/_products.html.haml +++ b/app/views/shop/_products.html.haml @@ -23,7 +23,8 @@ %td {{ product.master.options_text }} %td - %input{type: :number, value: 0, min: 0, name: "variants[{{product.master.id}}]"} + %span{"ng-show" => "(product.variants.length == 0)"} + %input{type: :number, value: 0, min: 0, name: "variants[{{product.master.id}}]"} %td.group_buy %span{"ng-show" => "product.group_buy"} Available @@ -46,3 +47,6 @@ %small from ${{variant.price }} %input.button.right{type: :submit, value: "Check Out"} -#%pre {{ data.products | json }} + + +