diff --git a/app/views/shop/shop/_products.html.haml b/app/views/shop/shop/_products.html.haml index 90a27d2c22..0a1f67d0e7 100644 --- a/app/views/shop/shop/_products.html.haml +++ b/app/views/shop/shop/_products.html.haml @@ -53,3 +53,5 @@ %tr.variant{"ng-repeat" => "variant in product.variants", "ng-show" => "product.show_variants"} = render partial: "shop/shop/variant" %input.button.right{type: :submit, value: "Add to Cart"} + + diff --git a/app/views/shop/shop/products.rabl b/app/views/shop/shop/products.rabl index 662196953e..c92a1afaa0 100644 --- a/app/views/shop/shop/products.rabl +++ b/app/views/shop/shop/products.rabl @@ -1,5 +1,10 @@ collection @products attributes :id, :name, :permalink, :count_on_hand, :on_demand, :group_buy + +node :show_variants do + true +end + node do |product| { notes: strip_tags(product.notes),