Implement guest buy now checkout
All checks were successful
Build and Push Docker Image / build (push) Successful in 26s

This commit is contained in:
2026-06-15 23:16:10 +02:00
parent f029e11175
commit a84b9af926
14 changed files with 322 additions and 85 deletions

View File

@@ -106,7 +106,13 @@
В корзину
</a>
{% endif %}
<button class="product-summary__button product-summary__button--secondary" type="button">Купить</button>
{% if item.is_available %}
<a class="product-summary__button product-summary__button--secondary product-summary__button--link" href="{% url 'orders:buy_now' item.id %}">
Купить
</a>
{% else %}
<button class="product-summary__button product-summary__button--secondary" type="button" disabled>Купить</button>
{% endif %}
</div>
</section>
</main>