[FIX] website_sale_aplicoop: enable add to cart

This commit is contained in:
snt 2026-03-03 14:58:47 +01:00
parent a9c1f1f609
commit 6cc0a18de3

View file

@ -677,8 +677,8 @@
<button class="qty-increase" type="button" t-attf-data-product-id="{{ product.id }}" aria-label="Increase quantity">
<i class="fa fa-plus" />
</button>
<button t-attf-class="add-to-cart-btn {{ 'btn-disabled' if product.is_out_of_stock else '' }}" type="button" t-att-disabled="product.is_out_of_stock or None" t-attf-aria-label="{{ 'Out of stock' if product.is_out_of_stock else 'Add %s to cart' % product.name }}" t-attf-title="{{ 'Out of stock' if product.is_out_of_stock else 'Add %s to cart' % product.name }}">
<i t-attf-class="fa {{ 'fa-ban' if product.is_out_of_stock else 'fa-shopping-cart' }}" aria-hidden="true" />
<button class="add-to-cart-btn" type="button" t-attf-aria-label="{{ 'Add %s to cart' % product.name }}" t-attf-title="{{ 'Add %s to cart' % product.name }}">
<i class="fa fa-shopping-cart" aria-hidden="true" />
</button>
</div>
</form>