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



#6 dadisan

dadisan

    Newbie

  • Members
  • Pip
  • 0 posts

Posted 23 July 2025 - 12:28 PM

Hi everyone, I'm having the same problem, but the modification Milosz shared doesn't work. I'll explain why.
Meanwhile, the product-miniature-btn.tpl file
is located at another address, which is this:
\templates\catalog\_partials\miniatures\_partials\product-miniature-btn.tpl.
and the original code is different from the one shown by Milosz which is this:
--------------------------- 
 

<input 
type="number" 
name="qty" 
value="{if isset($product.product_attribute_minimal_quantity) && $product.product_attribute_minimal_quantity neq ''}{if $product.product_attribute_minimal_quantity}{$product.product_attribute_minimal_quantity}{else}1{/if}{else}{if $product.minimal_quantity}{$product.minimal_quantity}{else}1{/if}{/if}" 
class="form-control input-qty" 
min="{if isset($product.product_attribute_minimal_quantity) && $product.product_attribute_minimal_quantity neq ''}{if $product.product_attribute_minimal_quantity}{$product.product_attribute_minimal_quantity}{else}1{/if}{else}{if $product.minimal_quantity}{$product.minimal_quantity}{else}1{/if}{/if}"
{if !$product.allow_oosp}max="{$max_quantity}"{/if}
>

 
---------------------------
I tried replacing it anyway, but it doesn't work. Do you know how I can fix it? What code to use? Or something else?
Thanks for any info




################# - ITA - ####################


ciao a tutti ho lo stesso problema ma la modifica comunicata da Milosz non funziona e spiego perché
intanto il file product-miniature-btn.tpl
si trova in unaltro indirizzo che è questo:
\templates\catalog\_partials\miniatures\_partials\product-miniature-btn.tpl.
e il codice originale è diverso da quello mostrato da Milosz che è questo:
---------------------------

    <input
                        type="number"
                        name="qty"
                        value="{if isset($product.product_attribute_minimal_quantity) && $product.product_attribute_minimal_quantity neq ''}{if $product.product_attribute_minimal_quantity}{$product.product_attribute_minimal_quantity}{else}1{/if}{else}{if $product.minimal_quantity}{$product.minimal_quantity}{else}1{/if}{/if}"
                        class="form-control input-qty"
                        min="{if isset($product.product_attribute_minimal_quantity) && $product.product_attribute_minimal_quantity neq ''}{if $product.product_attribute_minimal_quantity}{$product.product_attribute_minimal_quantity}{else}1{/if}{else}{if $product.minimal_quantity}{$product.minimal_quantity}{else}1{/if}{/if}"
                        {if !$product.allow_oosp}max="{$max_quantity}"{/if}
                >

---------------------------
ho provato lo stesso a sostituirlo ma non funziona sapete come posso risolvere che codice utilizzare? o altro?
grazie per eventuali info



#7 dadisan

dadisan

    Newbie

  • Members
  • Pip
  • 0 posts

Posted 23 July 2025 - 12:30 PM

Hi everyone, I'm having the same problem, but the modification Milosz shared doesn't work. I'll explain why.
Meanwhile, the product-miniature-btn.tpl file
is located at another address, which is this:
\templates\catalog\_partials\miniatures\_partials\product-miniature-btn.tpl.
and the original code is different from the one shown by Milosz which
is this:
 
<input 
type="number" 
name="qty" 
value="{if isset($product.product_attribute_minimal_quantity) && $product.product_attribute_minimal_quantity neq ''}{if $product.product_attribute_minimal_quantity}{$product.product_attribute_minimal_quantity}{else}1{/if}{else}{if $product.minimal_quantity}{$product.minimal_quantity}{else}1{/if}{/if}" 
class="form-control input-qty" 
min="{if isset($product.product_attribute_minimal_quantity) && $product.product_attribute_minimal_quantity neq ''}{if $product.product_attribute_minimal_quantity}{$product.product_attribute_minimal_quantity}{else}1{/if}{else}{if $product.minimal_quantity}{$product.minimal_quantity}{else}1{/if}{/if}"
{if !$product.allow_oosp}max="{$max_quantity}"{/if}
>
 
I tried replacing it anyway, but it doesn't work. Do you know how I can fix it? What code to use? Or something else?
Thanks for any info



----------------
ita
ciao a tutti ho lo stesso problema ma la modifica comunicata da Milosz non funziona e spiego perché
intanto il file product-miniature-btn.tpl
si trova in unaltro indirizzo che è questo:
\templates\catalog\_partials\miniatures\_partials\product-miniature-btn.tpl.
e il codice originale è diverso da quello mostrato da Milosz che è questo:
 
    <input
                        type="number"
                        name="qty"
                        value="{if isset($product.product_attribute_minimal_quantity) && $product.product_attribute_minimal_quantity neq ''}{if $product.product_attribute_minimal_quantity}{$product.product_attribute_minimal_quantity}{else}1{/if}{else}{if $product.minimal_quantity}{$product.minimal_quantity}{else}1{/if}{/if}"
                        class="form-control input-qty"
                        min="{if isset($product.product_attribute_minimal_quantity) && $product.product_attribute_minimal_quantity neq ''}{if $product.product_attribute_minimal_quantity}{$product.product_attribute_minimal_quantity}{else}1{/if}{else}{if $product.minimal_quantity}{$product.minimal_quantity}{else}1{/if}{/if}"
                        {if !$product.allow_oosp}max="{$max_quantity}"{/if}
                >
 
ho provato lo stesso a sostituirlo ma non funziona sapete come posso risolvere che codice utilizzare? o altro?
grazie per eventuali info


#8 dadisan

dadisan

    Newbie

  • Members
  • Pip
  • 0 posts

Posted Yesterday, 06:49 PM

I got the module from mypresta.eu and have been requesting assistance for several days without receiving any response. Is it possible that people make fools of themselves like this?







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