X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=app%2Fviews%2Fstore%2Fadd_to_cart.html.erb;fp=app%2Fviews%2Fstore%2Fadd_to_cart.html.erb;h=64270c3ae7f9e984511cbfa5324ee8b3eb7e389e;hb=c611b802645df9f0b490550d8c352fd24eb6ec5b;hp=0000000000000000000000000000000000000000;hpb=e0bbc73cee316aa3fdaae981e567de2443799be3;p=depot.git diff --git a/app/views/store/add_to_cart.html.erb b/app/views/store/add_to_cart.html.erb new file mode 100644 index 0000000..64270c3 --- /dev/null +++ b/app/views/store/add_to_cart.html.erb @@ -0,0 +1,18 @@ +

Your Whimsical Cart

+ +
Your Cart
+ + <% for item in @cart.items %> + + + + + + <% end %> + + + + +
<%= item.quantity %>×<%=h item.title %><%= number_to_currency(item.price, :unit => "£") %>
Total<%= number_to_currency(@cart.total_price, :unit => "£") %>
+ +<%= button_to 'Empty cart', :action => :empty_cart %>