Restore and lock in shop app, admin sidebar, media routing, and Stripe
This commit is contained in:
1 parent
93d83a0d63
commit
3cfea85499
15 files changed
+486
-73
No files matched your search
+11
-3
@@ -30,14 +30,22 @@
|
||||
<section class="shop-option" data-variant-panel="{{ variant.pk }}">
|
||||
{% include 'shop-image.html' with primary=variant.art fallback=product.cover title=product.title only %}
|
||||
<p class="shop-format">{{ variant }}{% if variant.price_usd != None %} <span>· ${{ variant.price_usd|floatformat:"2" }}</span>{% endif %}</p>
|
||||
<a class="cta" href="{{ variant.paypal_url }}">Buy {{ variant.get_format_display }} on PayPal →</a>
|
||||
{% if stripe_shop_ready and variant.price_usd >= 0.50 %}
|
||||
{% include 'shop-stripe-button.html' with product_id=product.pk variant_id=variant.pk %}
|
||||
{% endif %}
|
||||
{% if variant.paypal_url %}<a class="cta secondary" href="{{ variant.paypal_url }}">Buy {{ variant.get_format_display }} on PayPal →</a>
|
||||
{% elif not stripe_shop_ready or not variant.price_usd or variant.price_usd < 0.50 %}<p class="shop-format">Currently unavailable</p>{% endif %}
|
||||
</section>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<section class="shop-option">
|
||||
{% include 'shop-image.html' with primary=product.cover title=product.title only %}
|
||||
{% if product.legacy_checkout %}<a class="cta" href="{{ product.legacy_checkout }}">Buy on PayPal →</a>
|
||||
{% else %}<p class="shop-format">Currently unavailable</p>{% endif %}
|
||||
{% if not product.variants.exists and stripe_shop_ready and product.price_usd >= 0.50 %}
|
||||
<p class="shop-format">${{ product.price_usd|floatformat:"2" }}</p>
|
||||
{% include 'shop-stripe-button.html' with product_id=product.pk variant_id=0 %}
|
||||
{% endif %}
|
||||
{% if product.legacy_checkout %}<a class="cta secondary" href="{{ product.legacy_checkout }}">Buy on PayPal →</a>
|
||||
{% elif product.variants.exists or not stripe_shop_ready or not product.price_usd or product.price_usd < 0.50 %}<p class="shop-format">Currently unavailable</p>{% endif %}
|
||||
</section>
|
||||
{% endif %}
|
||||
</article>
|
||||
|
||||
Reference in new issue
Block a user