Sha256: 3bcc58f62b429010495a7e314f14ac0db1312bad1c19e5d34078259bfe8f628a
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 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-%> <%= "(#{item.variation.name})" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
railscart-0.0.1 | starter-app/vendor/plugins/railscart/app/views/shared/_order_details.rhtml |
railscart-0.0.2 | starter_app/vendor/plugins/railscart/app/views/shared/_order_details.rhtml |