Sha256: 9446426ad4dc95c4ab4dff18d8e0023b895666b20e9a2e2ec1e31f16dc3dd546
Contents?: true
Size: 1.1 KB
Versions: 5
Compression:
Stored size: 1.1 KB
Contents
<table class="order-summary"> <tr> <th colspan="4" id="order-num">Order # <%=@order.number%></th> </tr> <tr> <th>Item Description</th> <th>Price</th> <th>Qty</th> <th>Total</th> </tr> <% for item in @order.line_items %> <tr > <td width="300"><%=item.product.name-%> <%= "(" + variation_options(item.variation) + ")" if item.variation %></td> <td valign="top"><%= number_to_currency item.price -%></td> <td valign="top"><%=item.quantity-%></td> <td valign="top"><%= number_to_currency (item.price * item.quantity)-%></td> </tr> <% end %> <tr id="subtotal-row"> <td colspan="3"><b>Subtotal: </b></td> <td><%= number_to_currency @order.item_total -%></td> </tr> <tr> <td colspan="3"><b>Tax: </b></td> <td><%= number_to_currency @order.tax_amount -%></td> </tr> <tr> <td colspan="3"><b>Shipping: </b></td> <td><%= number_to_currency @order.ship_amount -%></td> </tr> <tr> <td colspan="3"><b>Order Total: </b></td> <td><%= number_to_currency @order.total -%></td> </tr> </table>
Version data entries
5 entries across 5 versions & 2 rubygems