<% if order.has_step?("address") %>
<%= t(:shipping_address) %> <%= link_to "(#{t(:edit)})", checkout_state_path(:address) unless @order.completed? %>
<%= order.ship_address %>
<%= t(:billing_address) %> <%= link_to "(#{t(:edit)})", checkout_state_path(:address) unless @order.completed? %>
<%= order.bill_address %>
<% if @order.has_step?("delivery") %>
<%= t(:shipping_method) %> <%= link_to "(#{t(:edit)})", checkout_state_path(:delivery) unless @order.completed? %>
<%= order.shipping_method.name %>
<% end %> <% end %>
<%= t(:payment_information) %> <%= link_to "(#{t(:edit)})", checkout_state_path(:payment) unless @order.completed? %>
<% if order.credit_cards.empty? %> <%= content_tag(:span, order.payment.payment_method.name) if order.payment %> <% else %> <% unless (cc_type = order.credit_cards.first.cc_type).blank? %> <%= image_tag "credit_cards/icons/#{order.credit_cards.first.cc_type}.png" %> <% end %> <%= t(:ending_in)%> <%= order.credit_cards.first.last_digits %>
<%= order.credit_cards.first.first_name %> <%= order.credit_cards.first.last_name %> <% end %>

<% @order.line_items.each do |item| %> <% end %> <% if order.price_adjustment_totals.present? %> <% @order.price_adjustment_totals.each do |key, total| %> <% end %> <% end %> <% @order.adjustments.eligible.each do |adjustment| %> <% next if (adjustment.originator_type == 'Spree::TaxRate') and (adjustment.amount == 0) %> <% end %>
<%= t(:item) %> <%= t(:price) %> <%= t(:qty) %> <%= 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 %>

<%= truncate(item.variant.product.description, :length => 100, :omission => "...") %> <%= "(" + item.variant.options_text + ")" unless item.variant.option_values.empty? %>
<%= item.variant.display_amount %> <%= item.quantity %> <%= item.display_amount %>
<%= t(:order_total) %>: <%= @order.display_total %>
<%= key %> <%= total %>
<%= t(:subtotal) %>: <%= @order.display_item_total %>
<%= adjustment.label %> <%= adjustment.display_amount %>