Sha256: 1253660b46ebcc4b35c78fb07d99f010c2878af4b92f6c154d1d3e3240442ce0

Contents?: true

Size: 1.84 KB

Versions: 14

Compression:

Stored size: 1.84 KB

Contents

<table class="index">
  <tbody id='line-items'>
    <tr>
      <%= hook :order_details_line_items_headers do %>
        <th><%= t('item_description') %></th>
        <th class="price"><%= t('price') %></th>
        <th class="qty"><%= t('qty') %></th>
        <th class="total"><span><%= t('total') %></span></th>
      <% end %>
    </tr>

    <% @order.line_items.each do |item| %>
      <tr>
        <%- locals = {:item => item} %>
        <%= hook :order_details_line_item_row, locals do %>
          <td width="300"><%=item.variant.product.name%> <%= "(" + variant_options(item.variant) + ")" unless item.variant .option_values.empty? %></td>
          <td class="price"><%= number_to_currency item.price %></td>
          <td class="qty"><%=item.quantity%></td>
          <td class="total"><span><%= number_to_currency (item.price * item.quantity)%></span></td>
        <% end %>
      </tr>
    <% end %>
  </tbody>
  <%= hook :order_details_subtotal do %>
    <tbody id='subtotal'>
      <tr class="total" id="subtotal-row">
        <td colspan="3"><b><%= t('subtotal') %>:</b></td>
        <td class="total"><span><%= number_to_currency @order.item_total %></span></td>
      </tr>
    </tbody>
  <% end %>
  <%= hook :order_details_adjustments do %>
    <tbody id="order-charges">
      <% @order.adjustments.each do |adjustment| %>
        <tr class="total">
          <td colspan="3"><strong><%= adjustment.label %></strong></td>
          <td class="total"><span><%= number_to_currency adjustment.amount %></span></td>
        </tr>
      <% end %>
    </tbody>
  <% end %>
  <%= hook :order_details_total do %>
    <tbody id='order-total'>
      <tr class="total">
        <td colspan="3"><b><%= t('order_total') %>:</b></td>
        <td class="total"><span id="order_total"><%= number_to_currency @order.total %></span></td>
      </tr>
    </tbody>
  <% end %>
</table>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
spree_core-0.30.2 app/views/shared/_order_details.html.erb
spree_core-0.40.4 app/views/shared/_order_details.html.erb
spree_core-0.50.4 app/views/shared/_order_details.html.erb
spree_core-0.50.3 app/views/shared/_order_details.html.erb
spree_core-0.50.2 app/views/shared/_order_details.html.erb
spree_core-0.50.1 app/views/shared/_order_details.html.erb
spree_core-0.50.0 app/views/shared/_order_details.html.erb
spree_core-0.40.3 app/views/shared/_order_details.html.erb
spree_core-0.40.2 app/views/shared/_order_details.html.erb
spree_core-0.40.1 app/views/shared/_order_details.html.erb
spree_core-0.40.0 app/views/shared/_order_details.html.erb
spree_core-0.30.1 app/views/shared/_order_details.html.erb
spree_core-0.30.0 app/views/shared/_order_details.html.erb
spree_core-0.30.0.beta1 app/views/shared/_order_details.html.erb