Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get view order working, with a bad layout
- Loading branch information
Showing
5 changed files
with
134 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Qty</th> | ||
<th>Product Name</th> | ||
<th>Price</th> | ||
<th>Total Price</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{{#cart}}<tr> | ||
{{#product}}<td>{{quantity}}</td> | ||
<td>{{name}}</td> | ||
<td>${{price}}</td> | ||
<td>${{total_price}}</td>{{/product}} | ||
</tr> | ||
{{/cart}} | ||
</tbody> | ||
<tfoot> | ||
<tr> | ||
<td class="total_items">{{total_items}}</td> | ||
<td colspan="2"></td> | ||
<td>${{total_price}}</td> | ||
</tr> | ||
</tfoot> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,20 @@ | ||
<h2>Put order details here</h2> | ||
<h2>Order Details</h2> | ||
<h3>Purchaser Details</h3> | ||
<p>Registered User: {{#registered_user}}Yes{{/registered_user}}{{^registered_user}}No{{/registered_user}}</p> | ||
<div id="user_details"> | ||
<h4>User Details</h4> | ||
{{#user}}<ul> | ||
<li>Name: {{first_name}} {{last_name}}</li> | ||
<li>Email: {{email}}</li> | ||
</ul>{{/user}} | ||
<h4>Shipping Information</h4> | ||
{{#shipping}}<ul> | ||
<li>Address: {{shipping_address}}</li> | ||
<li>City: {{shipping_city}}</li> | ||
<li>State: {{shipping_state}}</li> | ||
<li>Postal Code: {{shipping_postal_code}}</li> | ||
</ul>{{/shipping}} | ||
</div> | ||
<div id="order_details"> | ||
{{>cart}} | ||
</div> |