<%= Spree.t(:delivery_information) %>
<% if order.has_step?("address") %>
<%= Spree.t(:shipping_address) %> <%= checkout_edit_link %>
<%= render 'spree/shared/address', address: order.ship_address %>
<%= Spree.t(:billing_address) %> <%= checkout_edit_link %>
<%= render 'spree/shared/address', address: order.bill_address %>
<% end %> <% if order.has_step?("delivery") %>
<%= Spree.t(:shipping) %> <%= checkout_edit_link('delivery') %>
<% @order.shipments.valid.each do |shipment| %>
<%= shipment.shipping_method&.name %>
<% end %> <%= render 'spree/shared/shipment_tracking', order: order if order.shipped? %>
<% end %> <% if order.has_step?("payment") %>
<%= Spree.t(:payment) %> <%= checkout_edit_link('payment') %>
<%= render collection: @order.payments.valid, partial: 'spree/shared/payment' %>
<% if !@order.complete? && @order.using_store_credit? %> <%= button_tag Spree.t('store_credit.remove'), name: 'remove_store_credit', class: 'continue btn' %> <% end %>
<% end %>
<%= Spree.t(:products) %>

<%= Spree.t(:product) %>

<%= Spree.t(:price) %>

<%= Spree.t(:quantity) %>

<%= Spree.t(:total) %>

<% @order.line_items.each do |item| %>
<%= link_to product_image(item.variant), spree.product_path(item.product) %>
<%= link_to item.name, spree.product_path(item.product), class: 'checkout-confirm-order-details-line-items-line-item-name-link' %>
<% unless item.variant.is_master? %>
    <% item.variant.option_values.sort { |ov| ov.option_type.position }.each do |ov| %>
  • <% # TODO: rework option values so options_text method can be used here %> <%= "#{ov.option_type.presentation}: #{ov.name.titleize}" %>
  • <% end %>
<% end %>
<%= item.single_money.to_html %>
<%= Spree.t(:quantity) %>: <%= item.quantity %>
<%= item.single_money.to_html %>
<%= item.quantity %>
<%= item.display_total.to_s %>
<% end %>
<%= render partial: 'spree/checkout/summary', locals: { order: @order } %> <% unless @order.complete? %>
<% submit_label_key = @order.confirm? ? :place_order : :save_and_continue %> <%= submit_tag Spree.t(submit_label_key), class: 'btn btn-primary text-uppercase font-weight-bold w-100 checkout-content-save-continue-button' %>
<% end %>