Configure PayPal integration and cart checkout error display

This commit is contained in:
Zach committed 2026-12-01 04:20:38 +00:00
1 parent 62065828e1
commit cf07fc5d9b
98 files changed
+1430 -281

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
<article class="store-card">
<a class="store-cover" href="{% url 'shop-product' product.slug %}">{% if product.image %}<img src="{{ product.image.url }}" alt="{{ product.title }}" loading="lazy">{% else %}<span>SLX</span>{% endif %}</a>
<h2><a href="{% url 'shop-product' product.slug %}">{{ product.title }}</a></h2>
<small>{{ product.get_kind_display }}</small>
{% include 'shop/_seller_badge.html' %}
<p class="store-stock">{% if product.kind == 'physical' %}{% if product.in_stock %}In stock{% else %}Sold out{% endif %}{% elif product.kind == 'digital' %}Digital edition{% else %}Fan Club{% endif %}</p>
<strong>${{ product.price_usd }}{% if product.kind == 'subscription' %} / {{ product.billing_interval }}{% endif %}</strong>
{% if product.kind != 'subscription' and product.in_stock %}<form method="post" action="{% url 'shop-cart-add' product.pk %}">{% csrf_token %}<input type="hidden" name="quantity" value="1"><button class="store-button">Add to cart</button></form>
{% else %}<a class="store-button" href="{% url 'shop-product' product.slug %}">View details</a>{% endif %}
</article>