Files
spree_digital/app/views/spree/order_mailer/confirm_email.text.erb
2011-12-19 18:46:11 +01:00

38 lines
1.4 KiB
Plaintext

Dear Customer,
Please review and retain the following order information for your records.
============================================================
Order Summary
============================================================
<% for item in @order.line_items %>
<%= item.variant.sku %> <%=item.variant.product.name%> <%= variant_options(item.variant) %> (<%=item.quantity%>) @ <%= number_to_currency item.price %> = <%= number_to_currency(item.price * item.quantity) %>
<% end %>
============================================================
Subtotal: <%= number_to_currency @order.item_total %>
<% @order.adjustments.each do |adjustment| %>
<%= "#{adjustment.label}: #{number_to_currency adjustment.amount}"%>
<% end %>
Order Total: <%= number_to_currency @order.total %>
<% if @order.some_digital? %>
============================================================
Download links for digital products
============================================================
ATTENTION! Each link will only work a SINGLE TIME!
Also, they will only work WITHIN 24 HOURS!
<% for item in @order.line_items %>
<% if item.digital? %>
<%= raw item.variant.name %>:
<% for link in item.digital_links %>
<%= digital_url :host => Spree::Config.get(:site_url), :secret => link.secret %>
<% end %>
<% end %>
<% end %>
============================================================
<% end %>
Thank you for your business.