Sha256: ee3b2fcf2734641016bed459ab4b529638f9aac1ea2f973738844295c8d19505

Contents?: true

Size: 1.03 KB

Versions: 11

Compression:

Stored size: 1.03 KB

Contents

<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

11 entries across 11 versions & 1 rubygems

Version Path
solidus_frontend-2.2.2 app/views/spree/orders/_adjustments.html.erb
solidus_frontend-2.3.1 app/views/spree/orders/_adjustments.html.erb
solidus_frontend-2.3.0 app/views/spree/orders/_adjustments.html.erb
solidus_frontend-2.3.0.rc3 app/views/spree/orders/_adjustments.html.erb
solidus_frontend-2.3.0.rc2 app/views/spree/orders/_adjustments.html.erb
solidus_frontend-2.3.0.rc1 app/views/spree/orders/_adjustments.html.erb
solidus_frontend-2.3.0.beta1 app/views/spree/orders/_adjustments.html.erb
solidus_frontend-2.2.1 app/views/spree/orders/_adjustments.html.erb
solidus_frontend-2.2.0 app/views/spree/orders/_adjustments.html.erb
solidus_frontend-2.2.0.rc1 app/views/spree/orders/_adjustments.html.erb
solidus_frontend-2.2.0.beta1 app/views/spree/orders/_adjustments.html.erb