checkout-item.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <div id="{{ item.product_id }}" class="cart-table-row mw-680px mla mra x xdc pt1-7 pr0-85 pl0-85 sm-pl0 sm-pr0">
  2. <div class="x xdr pb7">
  3. <figure class="w50">
  4. <img src="{{ url_for('static', path='/images/cache/' + item.image.url) | to_srcset('checkout', item.image.width, item.path, size=2, size_attr=False) }}"
  5. srcset="{{ url_for('static', path='/images/cache/' + item.image.url) | to_srcset('checkout', item.image.width, item.path) }}"
  6. sizes="(max-width: 540px) 120px, 220px"
  7. alt="{{ item.image.url }}"
  8. width="{{ item.image.width }}"
  9. height="{{ item.image.height }}"
  10. class="checkout-image bd-yet-gray">
  11. </figure>
  12. <div class="w50">
  13. <h3 class="ff-sans fs-larger md-fs-wide pb2">
  14. {{ item.title }}
  15. {% if item.options.size and item.options.style %}
  16. — {{ item.options.style | capitalize }} / Size {{ item.options.size | upper }}
  17. {% elif item.options.size %}
  18. — {{ item.options.size | upper }}
  19. {% elif item.options.style %}
  20. — Size {{ item.options.style | capitalize }}
  21. {% endif %}
  22. </h3>
  23. {% set operation = 'delete' %}
  24. {% include "partials/checkout-item-form.html" %}
  25. {% set operation = False %}
  26. {% if not item.availability %}
  27. <div class="pt1-7">This product is soldout.</div>
  28. {% endif %}
  29. </div>
  30. </div>
  31. {% if item.availability %}
  32. <div class="x xdr xjsb pb1-7 bdb-dark-green">
  33. <div>
  34. <h4 class="ff-sans ttu pb1 sm-fs-big">Price</h4>
  35. <div class="fs-bigger sm-fs-huge">{{ item.price }} {{ cart.meta.currency }}</div>
  36. </div>
  37. <div class="tac">
  38. <h4 class="ff-sans ttu pb1 sm-fs-big">Quantity</h4>
  39. <div class="x xdr xaic xjcc">
  40. {% set operation = 'remove' %}
  41. {% include "partials/checkout-item-form.html" %}
  42. {% set operation = 'manual' %}
  43. {% include "partials/checkout-item-form.html" %}
  44. {% set operation = 'add' %}
  45. {% include "partials/checkout-item-form.html" %}
  46. {% set operation = False %}
  47. </div>
  48. </div>
  49. <div class="item-total tar">
  50. <h4 class="ff-sans ttu pb1 sm-fs-big">Total</h4>
  51. <div class="fs-bigger sm-fs-huge"><span class="item-total--text">{{ item.total }}</span> {{ cart.meta.currency }}</div>
  52. <input type="hidden" id="price" name="price" value="{{ item.total }}">
  53. </div>
  54. </div>
  55. {% endif %}
  56. </div>