Files
spree_digital/app/views/order_mailer/confirm_email.text.erb
Captain Future e6134722d4 boom
2011-04-17 16:26:36 +02:00

37 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 %>
============================================================
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? %>
<%= item.variant.name %>:
<% for link in item.digital_links %>
<%= digital_url :protocol => 'https', :host => "yourdomainxygoeshere.com", :secret => link.secret %>
<% end %>
<% end %>
<% end %>
============================================================
Thank you for your business.