Skip to content

Commit

Permalink
fix(item): Show "Add to cart" if stock can't be checked (frappe#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
cogk authored Apr 8, 2024
1 parent eb2f34c commit 61c18bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webshop/templates/generators/item/item_add_to_cart.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
<div class="mt-6 mb-5">
<div class="mb-4 d-flex">
<!-- Add to Cart -->
{% if product_info.price and (cart_settings.allow_items_not_in_stock or product_info.in_stock) %}
{% if product_info.price and (cart_settings.allow_items_not_in_stock or product_info.in_stock != false) %}
<a href="/cart" class="btn btn-light btn-view-in-cart hidden mr-2 font-md"
role="button">
{{ _("View in Cart") if cart_settings.enable_checkout else _("View in Quote") }}
Expand Down

0 comments on commit 61c18bd

Please sign in to comment.