Skip to content

Commit

Permalink
feat: change qty input min and value t o match with minimal quantity
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-devfront committed Sep 6, 2023
1 parent d74b09d commit 6b1f899
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/catalog/_partials/miniatures/product.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@
{include file='components/qty-input.tpl'
attributes=[
"id"=>"quantity_wanted_{$product.id_product}",
"value"=>"1",
"min"=>"{if $product.quantity_wanted}{$product.minimal_quantity}{else}1{/if}"
"value"=>"{if $product.cart_quantity && $product.cart_quantity >= $product.minimal_quantity}1{else}{$product.minimal_quantity}{/if}",
"min"=>"{if $product.cart_quantity && $product.cart_quantity >= $product.minimal_quantity}1{else}{$product.minimal_quantity}{/if}"
]
marginHelper="mb-0"
}
Expand Down

0 comments on commit 6b1f899

Please sign in to comment.