Using resource controller and namespace
This commit is contained in:
1 parent
02fd4a64d1
commit
4ecf99a4ae
21 files changed
+84
-69
No files matched your search
@@ -0,0 +1,37 @@
|
||||
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.
|
||||
Reference in new issue
Block a user