From 6b563f40e661d66a703790018b33a749a1828c8d Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 19 Sep 2024 21:36:08 +0100 Subject: wip: shopping basket slowly coming on --- pyblackbird_cc/templates/payments/cart_detail.html | 43 ++++++---------------- .../templates/payments/cart_lineitem.html | 2 +- .../templates/payments/cart_sidepanel.html | 28 ++++++++++++++ 3 files changed, 40 insertions(+), 33 deletions(-) create mode 100644 pyblackbird_cc/templates/payments/cart_sidepanel.html (limited to 'pyblackbird_cc/templates') diff --git a/pyblackbird_cc/templates/payments/cart_detail.html b/pyblackbird_cc/templates/payments/cart_detail.html index e38e2ae..8c6c01b 100644 --- a/pyblackbird_cc/templates/payments/cart_detail.html +++ b/pyblackbird_cc/templates/payments/cart_detail.html @@ -6,45 +6,24 @@

My basket

{% lorem %}

{% if cart %} -
+
-
+
+ {% for item in cart.items.all %} +
+ {% include "payments/cart_lineitem.html" with item=item %} +
+ {% endfor %}
- - - - - - - - - - - {% for item in cart.items.all %} - - - - - {% endfor %} - - - - - - - -
ProductPrice
- {% include "payments/cart_lineitem.html" with item=item %} - £{{ item.product.price }}
Total:£{{ cart_total }}
-
-
-
- Checkout +
+ {% include "payments/cart_sidepanel.html" with cart=cart %} +
+
{% else %}

Your cart is empty.

diff --git a/pyblackbird_cc/templates/payments/cart_lineitem.html b/pyblackbird_cc/templates/payments/cart_lineitem.html index b639a7f..0ef8a97 100644 --- a/pyblackbird_cc/templates/payments/cart_lineitem.html +++ b/pyblackbird_cc/templates/payments/cart_lineitem.html @@ -1,5 +1,5 @@
-
+
{{ item.resource.name }}
diff --git a/pyblackbird_cc/templates/payments/cart_sidepanel.html b/pyblackbird_cc/templates/payments/cart_sidepanel.html new file mode 100644 index 0000000..7742c9a --- /dev/null +++ b/pyblackbird_cc/templates/payments/cart_sidepanel.html @@ -0,0 +1,28 @@ +
+
+
+ Subtotal: +
+
+ £{{ cart_total }} 10.24 +
+
+
+
+ Shipping and handling: +
+
+

There is nothing to say here

+
+
+
+
+

After payment, links to your download will be generated. + Help +

+ +
+
+ +
+
-- cgit v1.2.3