<% if order.has_step?("address") %>
<%= Spree.t(:billing_address) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:address) unless @order.completed? %>
<%= render :partial => 'spree/shared/address', :locals => { :address => order.bill_address } %>
<% if order.has_step?("delivery") %>
<%= Spree.t(:shipping_address) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:address) unless @order.completed? %>
<%= render :partial => 'spree/shared/address', :locals => { :address => order.ship_address } %>
<% end %> <% if @order.has_step?("delivery") %>
<%= Spree.t(:shipments) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:delivery) unless @order.completed? %>
<% order.shipments.each do |shipment| %>
<%= Spree.t(:shipment_details, :stock_location => shipment.stock_location.name, :shipping_method => shipment.selected_shipping_rate.name) %>
<% end %>
<%= render(:partial => 'spree/shared/shipment_tracking', :locals => {:order => @order}) if @order.shipped? %>
<% end %> <% end %>
<%= Spree.t(:payment_information) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:payment) unless @order.completed? %>
<% order.payments.valid.each do |payment| %> <%= render payment%>
<% end %>

<% @order.line_items.each do |item| %> <% end %> <% if @order.line_item_adjustments.exists? %> <% if order.all_adjustments.promotion.eligible.exists? %> <% order.all_adjustments.promotion.eligible.group_by(&:label).each do |label, adjustments| %> <% end %> <% end %> <% end %> <% order.shipments.group_by { |s| s.selected_shipping_rate.name }.each do |name, shipments| %> <% end %> <% if order.all_adjustments.tax.exists? %> <% order.all_adjustments.tax.group_by(&:label).each do |label, adjustments| %> <% end %> <% end %> <% @order.adjustments.eligible.each do |adjustment| %> <% next if (adjustment.source_type == 'Spree::TaxRate') and (adjustment.amount == 0) %> <% end %>
<%= Spree.t(:item) %> <%= Spree.t(:price) %> <%= Spree.t(:qty) %> <%= Spree.t(:total) %>
<% if item.variant.images.length == 0 %> <%= link_to small_image(item.variant.product), item.variant.product %> <% else %> <%= link_to image_tag(item.variant.images.first.attachment.url(:small)), item.variant.product %> <% end %>

<%= item.variant.product.name %>

<%= truncated_product_description(item.variant.product) %> <%= "(" + item.variant.options_text + ")" unless item.variant.option_values.empty? %>
<%= item.single_money.to_html %> <%= item.quantity %> <%= item.display_amount.to_html %>
<%= Spree.t(:order_total) %>: <%= @order.display_total.to_html %>
<%= Spree.t(:subtotal) %>: <%= @order.display_item_total.to_html %>
<%= Spree.t(:promotion) %>: <%= label %> <%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency) %>
<%= Spree.t(:shipping) %>: <%= name %> <%= Spree::Money.new(shipments.sum(&:discounted_cost), currency: order.currency).to_html %>
<%= Spree.t(:tax) %>: <%= label %> <%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency) %>
<%= adjustment.label %> <%= adjustment.display_amount.to_html %>