Skip to content

Commit

Permalink
Merge pull request #548 from PrestaShop/ticket_545/fix_product_card_m…
Browse files Browse the repository at this point in the history
…inimum

Change qty input min and value to match with minimal quantity
  • Loading branch information
nicosomb authored Sep 8, 2023
2 parents c08088d + 6b1f899 commit 3136aa0
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 3136aa0

Please sign in to comment.