Configure PayPal integration and cart checkout error display
This commit is contained in:
1 parent
62065828e1
commit
cf07fc5d9b
98 files changed
+1430
-281
No files matched your search
@@ -1,40 +1,9 @@
|
||||
{% extends 'base.html' %}
|
||||
{% extends 'base.html' %}{% load static %}
|
||||
{% block scripts %}<link rel="stylesheet" href="{% static 'storefront.css' %}">{% endblock %}
|
||||
{% block title %}Shop · SLUMP X LAND{% endblock %}
|
||||
{% block content %}
|
||||
<main class="page-shell theme-shop">
|
||||
<header class="section-head" style="display:flex;justify-content:space-between;align-items:center;gap:1rem;">
|
||||
<h1>Shop</h1>
|
||||
<a class="btn" href="{% url 'shop-cart' %}">Cart ({{ cart_count }})</a>
|
||||
</header>
|
||||
|
||||
{% if request.GET.subscribed %}
|
||||
<p class="notice">Thank you! Your subscription is processing and will activate momentarily.</p>
|
||||
{% endif %}
|
||||
|
||||
<div class="shop-grid">
|
||||
{% for product in products %}
|
||||
<article class="card shop-product">
|
||||
<a href="{% url 'shop-product' product.slug %}" style="text-decoration:none;color:inherit;display:block;padding:1rem 1rem 0;">
|
||||
<div class="shop-image{% if product.image %} has-shop-image{% endif %}" data-shop-image>
|
||||
{% if product.image %}
|
||||
<img src="{{ product.image.url }}" alt="{{ product.title }}" onerror="this.style.display='none';this.parentElement.classList.remove('has-shop-image');">
|
||||
{% endif %}
|
||||
<div class="shop-image-placeholder">SLX</div>
|
||||
</div>
|
||||
</a>
|
||||
<header>
|
||||
<span class="badge">{{ product.get_kind_display }}</span>
|
||||
<h2 style="margin-top:.4rem;"><a href="{% url 'shop-product' product.slug %}">{{ product.title }}</a></h2>
|
||||
{% if product.summary %}<p>{{ product.summary }}</p>{% endif %}
|
||||
</header>
|
||||
<div class="shop-option" style="display:flex;justify-content:space-between;align-items:center;gap:.75rem;">
|
||||
<strong>${{ product.price_usd }}{% if product.kind == 'subscription' %} / {{ product.billing_interval }}{% endif %}</strong>
|
||||
<a class="btn" href="{% url 'shop-product' product.slug %}">View Details</a>
|
||||
</div>
|
||||
</article>
|
||||
{% empty %}
|
||||
<p>No shop items are live yet. Check back soon.</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</main>
|
||||
<main class="section slx-store"><div class="store-bar"><a href="{% url 'world-map' %}">← Sol’Terra map</a><a href="{% url 'shop-cart' %}">Cart ({{ cart_count }})</a></div>
|
||||
<header class="store-banner"><h1>Slump X Land Shop</h1><p>Books, digital editions, and the Monthly Fan Club.</p></header>
|
||||
{% if request.GET.subscribed %}<p>Your access will update after Stripe confirms the subscription.</p>{% endif %}
|
||||
<div class="store-grid">{% for product in products %}{% include 'shop/card.html' %}{% empty %}<p>No products are available yet.</p>{% endfor %}</div></main>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user