app/views/piggybak/notifier/order_notification.text.erb in piggybak-0.5.5 vs app/views/piggybak/notifier/order_notification.text.erb in piggybak-0.6.0
- old
+ new
@@ -1,10 +1,18 @@
Thanks for your order!
Items
-<% @order.line_items.each do |line_item| %>
-<%= line_item.variant.description %> x <%= line_item.quantity %> = <%= number_to_currency line_item.total %>
+<% @order.line_items.sellables.each do |line_item| %>
+<%= line_item.description %> x <%= line_item.quantity %> = <%= number_to_currency line_item.price %>
+<% end -%>
+
+<% @order.line_items.shipments.each do |line_item| %>
+<%= line_item.description %> = <%= number_to_currency line_item.price %>
+<% end -%>
+
+<% @order.line_items.payments.each do |line_item| %>
+<%= line_item.description %> = <%= number_to_currency line_item.price %>
<% end -%>
Total
<%= number_to_currency @order.total %>