<%= Spree.t(:summary).upcase %>

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

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

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

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

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

<% @order.line_items.each do |item| %>
<% if item.variant.images.length == 0 %> <%= link_to product_image(item.variant.product), item.variant.product %> <% else %> <%= link_to image_tag(main_app.url_for(item.variant.images.first.url(:plp_and_carousel))), item.variant.product %> <% end %>
<%= item.name %>
    <% item.variant.option_values.sort { |ov| ov.option_type.position }.each do |ov| %>
  • <%= "#{ov.option_type.presentation}: #{ov.name.titleize}" %>
  • <% end %>
<%= item.single_money.to_html %>
Quantity: <%= item.quantity %>
<%= item.single_money.to_html %>
<%= item.quantity %>
<%= item.display_total.to_s %>
<% end %>
<%= Spree.t(:delivery_information) %>
<%= Spree.t(:shipping_address) %> <%= checkout_edit_link %>
<%= sanitize @order.ship_address.to_s, tags: %w[br] %>
<%= Spree.t(:billing_address) %> <%= checkout_edit_link %>
<%= sanitize @order.bill_address.to_s, tags: %w[br] %>
<%= Spree.t(:shipping) %> <%= checkout_edit_link('delivery') %>
<%= @order.shipments.first.shipping_method&.name if @order.shipments.any? %>
<%= Spree.t(:payment) %> <%= checkout_edit_link('payment') %>
<%= render collection: @order.payments.valid, partial: 'spree/shared/payment' %>
<% if @order.using_store_credit? %> <%= button_tag Spree.t('store_credit.remove'), name: 'remove_store_credit', class: 'continue btn' %> <% end %>
<%= render partial: 'spree/checkout/summary', locals: { order: @order } %>
<% 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' %>