Sha256: 08597eafe4434402bcf1fd8b3b0ce2ae8f78d3d3b0e58c14ba330705c598f393
Contents?: true
Size: 1.76 KB
Versions: 2
Compression:
Stored size: 1.76 KB
Contents
<table class="index" data-hook="order_details"> <tbody id='line-items' data-hook> <tr data-hook="order_details_line_items_headers"> <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> </tr> <% @order.line_items.each do |item| %> <tr data-hook="order_details_line_item_row"> <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> </tr> <% end %> </tbody> <tbody id='subtotal' data-hook="order_details_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> <tbody id="order-charges" data-hook="order_details_adjustments"> <% @order.adjustments.eligible.each do |adjustment| %> <% next if (adjustment.originator_type == "TaxRate") and (adjustment.amount == 0) %> <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> <tbody id='order-total' data-hook="order_details_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> </table>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_core-0.70.0.rc2 | app/views/shared/_order_details.html.erb |
spree_core-0.70.RC1 | app/views/shared/_order_details.html.erb |