Jump to content


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
Photo

minimal quantity is not applicable to list of products

minimal quantity quantity

  • Please log in to reply
4 replies to this topic

#1 michael_NL

michael_NL

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 02 September 2021 - 08:04 AM

Minimal quantity is not applicable when user adds to cart from list of products
In print screen (category list product (not working) and on product (working)
The wbesite, you need to be conencted


#2 Milosz

Milosz

    Advanced Member

  • Members
  • PipPipPip
  • 117 posts

Posted 02 September 2021 - 08:05 AM

 

Minimal quantity is not applicable when user adds to cart from list of products
In print screen (category list product (not working) and on product (working)
The wbesite, you need to be conencted

 

 

hello

what theme you use?



#3 michael_NL

michael_NL

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 02 September 2021 - 08:05 AM

hello

what theme you use?

 

warehouse



#4 Milosz

Milosz

    Advanced Member

  • Members
  • PipPipPip
  • 117 posts

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 :-)



#5 michael_NL

michael_NL

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 02 September 2021 - 08:07 AM

wow,

thank you! it does work now well :-)







Also tagged with one or more of these keywords: minimal quantity, quantity

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users