Sha256: de5948d9dcf367220d3e9bbffcdd65186c91c9639f45de929193cf22cd373a30

Contents?: true

Size: 1.18 KB

Versions: 124

Compression:

Stored size: 1.18 KB

Contents

<thead>
  <tr data-hook="cart_adjustments_headers">
    <th class="cart-adjustment-header" colspan="6"><%= Spree.t(:order_adjustments) %></th>
  </tr>
</thead>
<tbody id="cart_adjustments" data-hook>
  <% if @order.line_item_adjustments.exists? %>
    <% @order.line_item_adjustments.promotion.eligible.group_by(&:label).each do |label, adjustments| %>
      <%= render "spree/orders/adjustment_row", label: label, adjustments: adjustments, type: Spree.t(:promotion) %>
    <% end %>
  <% end %>

  <% @order.all_adjustments.tax.eligible.group_by(&:label).each do |label, adjustments| %>
    <%= render "spree/orders/adjustment_row", label: label, adjustments: adjustments, type: Spree.t(:tax) %>
  <% end %>

  <% @order.shipments.each do |shipment| %>
    <tr>
      <td colspan="4" align='right'><h5><%= Spree.t(:shipping) %>: <%= shipment.shipping_method.name %></h5></td>
      <td colspan='2'>
        <h5><%= shipment.display_discounted_cost %></h5>
      </td>
    </tr>
  <% end %>

  <% @order.adjustments.eligible.group_by(&:label).each do |label, adjustments| %>
    <%= render "spree/orders/adjustment_row", label: label, adjustments: adjustments, type: Spree.t(:adjustment) %>
  <% end %>
</tbody>

Version data entries

124 entries across 124 versions & 1 rubygems

Version Path
spree_frontend-4.2.3.1 app/views/spree/orders/_adjustments.html.erb
spree_frontend-4.1.13.1 app/views/spree/orders/_adjustments.html.erb
spree_frontend-4.0.7.1 app/views/spree/orders/_adjustments.html.erb
spree_frontend-4.2.3 app/views/spree/orders/_adjustments.html.erb
spree_frontend-4.2.2 app/views/spree/orders/_adjustments.html.erb
spree_frontend-4.2.1 app/views/spree/orders/_adjustments.html.erb
spree_frontend-4.0.7 app/views/spree/orders/_adjustments.html.erb
spree_frontend-3.7.14 app/views/spree/orders/_adjustments.html.erb
spree_frontend-4.2.0 app/views/spree/orders/_adjustments.html.erb
spree_frontend-4.2.0.rc5 app/views/spree/orders/_adjustments.html.erb
spree_frontend-4.2.0.rc4 app/views/spree/orders/_adjustments.html.erb
spree_frontend-4.2.0.rc3 app/views/spree/orders/_adjustments.html.erb
spree_frontend-4.1.13 app/views/spree/orders/_adjustments.html.erb
spree_frontend-4.0.6 app/views/spree/orders/_adjustments.html.erb
spree_frontend-4.2.0.rc2 app/views/spree/orders/_adjustments.html.erb
spree_frontend-3.7.13 app/views/spree/orders/_adjustments.html.erb
spree_frontend-4.0.5 app/views/spree/orders/_adjustments.html.erb
spree_frontend-4.1.12 app/views/spree/orders/_adjustments.html.erb
spree_frontend-3.7.12 app/views/spree/orders/_adjustments.html.erb
spree_frontend-4.2.0.rc1 app/views/spree/orders/_adjustments.html.erb