Sha256: 8863add4c00b2372118a04acbcb219678080f2db0c41a7fbef8d4aa9ebb0c661

Contents?: true

Size: 1.22 KB

Versions: 5

Compression:

Stored size: 1.22 KB

Contents

<h3><%= t(:order_summary) %></h3>

<table data-hook="order_summary">
  <tbody>
    <tr data-hook="item_total">
      <td><strong><%= t(:item_total) %>:</strong></td>
      <td><strong><%= money order.item_total %></strong></td>
    </tr>
    <tbody id="summary-order-charges" data-hook>
      <% order.adjustments.eligible.each do |adjustment| %>
      <% next if (adjustment.originator_type == 'Spree::TaxRate') and (adjustment.amount == 0) %>
        <tr>
          <td><%= adjustment.label %>: </td>
          <td><%= money adjustment.amount %></td>
        </tr>
      <% end %>
    </tbody>
    <tr data-hook="order_total">
      <td><strong><%= t(:order_total) %>:</strong></td>
      <td><strong><span id='summary-order-total'><%= money @order.total %></span></strong></td>
    </tr>
    <% if order.price_adjustment_totals.present? %>
      <tbody id="price-adjustments" data-hook="order_details_price_adjustments">
        <% @order.price_adjustment_totals.keys.each do |key| %>
          <tr class="total">
            <td><strong><%= key %></strong></td>
            <td><strong><span><%= money @order.price_adjustment_totals[key] %></span></strong></td>
          </tr>
        <% end %>
      </tbody>
    <% end %>
  </tbody>
</table>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_core-1.2.5 app/views/spree/checkout/_summary.html.erb
spree_core-1.2.4 app/views/spree/checkout/_summary.html.erb
spree_core-1.2.3 app/views/spree/checkout/_summary.html.erb
spree_core-1.2.2 app/views/spree/checkout/_summary.html.erb
spree_core-1.2.0 app/views/spree/checkout/_summary.html.erb