Displaying prices better

This commit is contained in:
Will Marshall
2014-01-17 15:17:30 +11:00
parent 87cf596a30
commit f7f4fbf503
2 changed files with 3 additions and 3 deletions

View File

@@ -36,7 +36,7 @@
%span.light-grey{"ng-hide" => "product.group_buy"}
N/A
%td.price
%small from
%small{"ng-show" => "(product.variants.length > 0)"} from
${{ product.price }}
%tr{"ng-repeat" => "variant in product.variants"}
%td{colspan: 3}
@@ -53,7 +53,7 @@
%span.light-grey{"ng-hide" => "product.group_buy"}
N/A
%td.price
%small from ${{variant.price }}
%small ${{variant.price }}
%input.button.right{type: :submit, value: "Check Out"}
-#%pre {{ data.products | json }}

View File

@@ -16,7 +16,7 @@ child :master => :master do
end
child :variants => :variants do |variant|
attributes :id, :is_master, :count_on_hand, :options_text, :count_on_hand, :on_demand
attributes :id, :is_master, :price, :count_on_hand, :options_text, :count_on_hand, :on_demand
child :images => :images do
attributes :id, :alt
node do |img|