Skip to content

Commit

Permalink
In productlist: if price is not shown don't show add to cart either
Browse files Browse the repository at this point in the history
  • Loading branch information
tswfi committed Nov 27, 2024
1 parent 68fee1e commit f3fb058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/catalog/_partials/miniatures/product.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
{/block}
</div>

{if $product.add_to_cart_url}
{if $product.show_price && $product.add_to_cart_url}
<form action="{$urls.pages.cart}" method="post" class="d-flex flex-wrap flex-md-nowrap gap-3 align-items-center mt-3">
<input type="hidden" value="{$product.id_product}" name="id_product">

Expand Down

0 comments on commit f3fb058

Please sign in to comment.