Sha256: 0ea4e62f8efb1db5ca5770ebb02be021c7843a3c52eaefbe0e9a6870db4e2b68
Contents?: true
Size: 1.54 KB
Versions: 7
Compression:
Stored size: 1.54 KB
Contents
<table class="order-summary"> <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 %> <tr 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> <tr> <td colspan="3"><b><%= t('tax') %>:</b></td> <td class="total_display"><span id="tax_amount"><%= number_to_currency @order.tax_amount -%></span></td> </tr> <tr> <td colspan="3"><b><%= t('shipping') %>:</b> <% if @order.shipment && @order.shipment.shipping_method %> <span id="ship_method">(<%= @order.shipment.shipping_method.name %>)</span> <% end %> </td> <td class="total_display"><span id="ship_amount"><%= number_to_currency @order.ship_amount -%></span></td> </tr> <tr> <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> </table>
Version data entries
7 entries across 7 versions & 2 rubygems