• Resolved Gerdski

    (@gerdski)


    Hello,

    we have a wine shop here, and it is necessary that custoers must buy multiples of 6 Bottles, not single ones. Like, they must buy 6, 12, 18, 24, 30 etc., because this is the size of the package/box.

    I have installed your plugin and created a min/max rule: Minimum of 6, and applied ot to a product. Now I see on this product page that the quantity counter starts with 6. This is good.

    After tat comes 7, 8, 9, 10 etc. This is not good for us.

    With Dev Tools I can see that tere is a “step” parameter:

    <input type=”number” id=”quantity_6229a22218091″ class=”input-text qty text” min=”6″ max=”” name=”quantity” value=”1″ title=”Menge” size=”4″ placeholder=”” inputmode=”numeric” autocomplete=”off” step=”1″>

    Setting this to step=”6″ does exactly what is needed…the quantity counter has 6, 12, 18, 24 etc.

    Would it somehow be possible with your plugin to set the step rate to something other than 1?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Hitendra Chopda

    (@hitendra-chopda)

    Hello Gerdski,

    Thanks for reaching out to us and apologies for the late reply.

    Our plugin is mainly used to set the minimum and maximum quantity range of products for any product.

    There is no option to set the step quantity in the current plugin version.

    We really like your suggestions and implement them in future updates.

    Best Regards,
    Hitendra & Dotstore Team

    Thread Starter Gerdski

    (@gerdski)

    Hello,

    thanks for your reply.

    There must be an option, because of this source code:

    <input type=”number” id=”quantity_6229a22218091″ class=”input-text qty text” min=”6″ name=”quantity” value=”1″ title=”Menge” size=”4″ placeholder=”” inputmode=”numeric” autocomplete=”off” step=”1″>

    min=”6″ and max=”” must come from your plugin, so maybe step=”1″ too.

    If you can tell me the file where this happens I will look it up myself…

    Plugin Support Hitendra Chopda

    (@hitendra-chopda)

    Hello Gerdski,

    Thanks for your feedback.

    We are using the filter code to set the min and max quantity price in the below file.

    File path: “min-and-max-quantity-for-woocommerce/public/class-mmqw-for-woocommerce-public.php”

    There are different functions available based on product, category, variations, etc.

    If you want to do any customization related to the quantity steps then you can add your code here.

    Best Regards,
    Hitendra & Dotstore Team

    Thread Starter Gerdski

    (@gerdski)

    Thank you…but I cannot find the place where you change the input field. This one:

    <input type=”number” id=”quantity_6243ec8e14065″ class=”input-text qty text” min=”6″ max=”” name=”quantity” value=”1″ title=”Menge” size=”4″ placeholder=”” inputmode=”numeric” autocomplete=”off” step=”1″>

    • This reply was modified 2 years, 7 months ago by Gerdski.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Multiples of 6 (12, 18,24, etc.) possible?’ is closed to new replies.