Answer the question
In order to leave comments, you need to log in
How to make quantity step for woocommerce product variations?
Dear connoisseurs, please respond to the cry of the soul, I have, for example, a variable product, each variation has a different quantity for sale, how to make a quantity selection step for each variation? Disk, the disk has 1 variation, it is sold in the amount of a minimum of 10 pieces, 2 variation in the amount of 6 pieces, so that when choosing a step, the one to which 10 went 10, 20, 30, and the other 6, 12, 18, the minimum quantity plugin I found, but in quantity you can choose 13, 14 pieces of one variation, and this is impossible for sale, so everything comes in packs, just in each pack a different amount, HELP !!! Please thank you for the solution.
Answer the question
In order to leave comments, you need to log in
The easiest way is to indicate the contents of the pack in the description and then count one pack at a time. You can add a description individually to a variation.
Otherwise, you need to add a meta field to each variation where you will specify this value (step) and later woocommerce_quantity_input_step
display this value using the filter hook. Then for each variation you will have different step values.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question