Sha256: 99f863c9ee608db8f6e07a72c70f1860add0958a66c7942df8e7370aa3b63e0b

Contents?: true

Size: 1.15 KB

Versions: 7

Compression:

Stored size: 1.15 KB

Contents

<table id="items" cellpadding="5" cellspacing="0">
	<tr>
		<th>Item</th>
		<th>Price</th>
		<th>Quantity</th>
		<th>Subtotal</th>
	</tr>
	<% order.line_items.each do |line_item| %>
	<tr>
		<td><%= line_item.variant.description %></td>
		<td><%= line_item.variant.price %></td>
		<td><%= line_item.quantity %></td>
		<td><%= number_to_currency line_item.total %></td>
	</tr>
	<% end -%>
	<tr>
		<td colspan="4"></td>
	</tr>
	<tr>
		<td colspan="2"></td>
		<td>Subtotal</td>
		<td><%= number_to_currency order.line_items.inject(0) { |subtotal, li| subtotal + li.total } %></td>
	</tr>
	<tr>
		<td colspan="2"></td>
		<td>Tax</td>
		<td><%= number_to_currency order.tax_charge %></td>
	</tr>
	<tr>
		<td colspan="2"></td>
		<td>Shipping</td>
		<td><%= number_to_currency order.shipments.inject(0) { |shipping, shipment| shipping + shipment.total } %></td>
	</tr>
	<tr>
		<td colspan="2"></td>
		<td>Total</td>
		<td><%= number_to_currency order.total %></td>
	</tr>
</table>

Email: <%= order.email %><br />
Phone: <%= order.phone %>

<h3>Billing Information</h3>
<%= raw order.billing_address.display %>

<h3>Shipping Information</h3>
<%= raw order.shipping_address.display %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
piggybak-0.4.1 app/views/piggybak/orders/_details.html.erb
piggybak-0.4.0 app/views/piggybak/orders/_details.html.erb
piggybak-0.3.2 app/views/piggybak/orders/_details.html.erb
piggybak-0.3.1 app/views/piggybak/orders/_details.html.erb
piggybak-0.3.0 app/views/piggybak/orders/_details.html.erb
piggybak-0.2.1 app/views/piggybak/orders/_details.html.erb
piggybak-0.2.0 app/views/piggybak/orders/_details.html.erb