<% 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? %>
<% unless order.credit_cards.empty? %> <% 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.keys.each do |key| %> <% 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? %>
<%= money item.price %> <%= item.quantity %> <%= money(item.price * item.quantity) %>
<%= t(:order_total) %>: <%= money @order.total %>
<%= key %> <%= money @order.price_adjustment_totals[key] %>
<%= t(:subtotal) %>: <%= money @order.item_total %>
<%= adjustment.label %> <%= money adjustment.amount %>