This is public support for Minimal product quantity module. Thanks to this addon you can set minimal quantity of item for each group of customers in your shop and accept multiplied quantities for products or combinations individually
minimal quantity is not applicable to list of products
Started by
michael_NL
, Sep 02 2021 08:04 AM
minimal quantity quantity
4 replies to this topic
#4
Posted 02 September 2021 - 08:07 AM
warehouse
prestashop by default does not have "add to cart" on list of products in prestashop 1.7 its a non-default feature so module does not change the way of how this non-default tool behaves.
in warehouse theme it is required to alter theme file that is responsible for product miniature on list of products
the file was: /themes/warehouse/templates/_partials/miniatures/_partials/product-miniature-btn.tpl
change input code from:
<input type="number" name="qty" value="{if isset($product.product_attribute_minimal_quantity) && $product.product_attribute_minimal_quantity neq ''}{$product.product_attribute_minimal_quantity}{else}{$product.minimal_quantity}{/if}" class="form-control input-qty" min="{if isset($product.product_attribute_minimal_quantity) && $product.product_attribute_minimal_quantity neq ''}{$product.product_attribute_minimal_quantity}{else}{$product.minimal_quantity}{/if}" {if !$product.allow_oosp}max="{$product.quantity}"{/if} >
to:
<input type="number" name="qty" data-bts-min="{if $minqc > 1}{$minqc}{else}1{/if}" data-bts-step="{if $minqc_multi > 0}{$minqc}{else}1{/if}" value="{if $minqc>1}{$minqc}{else}{if isset($product.product_attribute_minimal_quantity) && $product.product_attribute_minimal_quantity neq ''}{$product.product_attribute_minimal_quantity}{else}{$product.minimal_quantity}{/if}{/if}" class="form-control input-qty" min="{if $minqc > 0}{$minqc}{else}{if isset($product.product_attribute_minimal_quantity) && $product.product_attribute_minimal_quantity neq ''}{$product.product_attribute_minimal_quantity}{else}{$product.minimal_quantity}{/if}{/if}" {if !$product.allow_oosp}max="{$product.quantity}"{/if} >
and that's all :-)
Also tagged with one or more of these keywords: minimal quantity, quantity
Modules discussion →
Module Minimal product quantity →
various minimal quantity conditions for products?Started by umberto , 30 Aug 2021 quantity, product, minimal |
|
|
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users