receipt.html 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {% extends "pbp_store/store_base.html" %}
  2. {% block right-side %}{% endblock right-side %}
  3. {% load catalog_filters %}
  4. {% block body %}
  5. <table id="receipt">
  6. <caption>Your order has been placed!<br /><br />
  7. Your Order Number is: {{order.pk}}
  8. </caption>
  9. <thead>
  10. <tr>
  11. <th scope="col">Name</th>
  12. <th scope="col">Price</th>
  13. <th scope="col">Quantity</th>
  14. <th class="right" scope="col">Total</th>
  15. </tr>
  16. </thead>
  17. <tfoot>
  18. <tr>
  19. <td colspan="4" class="right" style="height:30px;">
  20. Order Total: {{order.total|currency}}
  21. </td>
  22. </tr>
  23. </tfoot>
  24. <tbody>
  25. {% for item in order.order_items %}
  26. <tr>
  27. <td>{{ item.name }}</td>
  28. <td>{{ item.price|currency }}</td>
  29. <td>{{ item.quantity }}</td>
  30. <td class="right">{{ item.total|currency }}</td>
  31. </tr>
  32. {% endfor %}
  33. </tbody>
  34. </table>
  35. {% endblock body %}