Sha256: 14f6964a090f4901811cac302f9d76ef361995c11f14243b6cd7ff8bc9f4c5f3

Contents?: true

Size: 1.77 KB

Versions: 6

Compression:

Stored size: 1.77 KB

Contents

<table class="index">
  <tbody id='line-items'>
    <tr>
      <th><%= t('item_description') %></th>
      <th class="price"><%= t('price') %></th>
      <th class="qty"><%= t('qty') %></th>
      <th class="total_display"><span><%= t('total') %></span></th>
    </tr>
    <% @order.line_items.each do |item| %>
      <tr >
        <td width="300"><%=item.variant.product.name-%> <%= "(" + variant_options(item.variant) + ")" unless item.variant .option_values.empty? %></td>
        <td valign="top"><%= number_to_currency item.price -%></td>
        <td valign="top"><%=item.quantity-%></td>
        <td valign="top" class="total_display"><span><%= number_to_currency (item.price * item.quantity)-%></span></td>
      </tr>
    <% end %>      
  </tbody>
  <tbody id='subtotal'>
    <tr class="total" id="subtotal-row">
      <td colspan="3"><b><%= t('subtotal') %>:</b></td>
      <td class="total_display"><span><%= number_to_currency @order.item_total -%></span></td>
    </tr>
  </tbody>
  <tbody id="order-charges">
    <% order.charges.each do |charge| %>
      <tr class="total">
        <td colspan="3"><strong><%= charge.description %></strong></td>
        <td class="total_display"><span><%= number_to_currency charge.amount -%></span></td>
      </tr>
    <% end %>
  </tbody>
  <tbody id="order-credits">
    <% order.credits.each do |credit| %>
      <tr class="total">
        <td colspan="3"><%= credit.description %></td>
        <td class="total_display"><span><%= number_to_currency credit.amount -%></span></td>
      </tr>
    <% end %>
  </tbody>
  <tbody id='order-total'>
    <tr class="total">
      <td colspan="3"><b><%= t('order_total') %>:</b></td>
      <td class="total_display"><span id="order_total"><%= number_to_currency @order.total -%></span></td>
    </tr>
  </tbody>
</table>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
spree-enriquez-0.9.4 app/views/shared/_order_details.html.erb
spree-0.9.4 app/views/shared/_order_details.html.erb
spree-0.9.3 app/views/shared/_order_details.html.erb
spree-0.9.2 app/views/shared/_order_details.html.erb
spree-0.9.1 app/views/shared/_order_details.html.erb
spree-0.9.0 app/views/shared/_order_details.html.erb