I’ve a product with 17 units in general stock and X price for sale, this product have 2 variations

Person selector:

  • 1 person
  • 2 persons
  • 3 persons

When buyer select:

  • 1 Person have a X + 1% price and reduce a 1 unit from general stock
  • 2 Person have a X + 2% price and reduce a 2 units from general stock
  • 3 Person have a X + 3% price and reduce a 3 units from general stock

… addtionally other selector check a child number and add price to final total with same options at “Person selector”, for example:

Person selector + Child selector (Or only Child selector):

  • 1 Child
  • 2 childs
  • 3 childs

When buyer select:

  • 1 Child have a X + 1% price and reduce a 1 unit from general stock
  • 2 Child have a X + 2% price and reduce a 2 unit from general stock
  • 3 Child have a X + 3% price and reduce a 3 unit from general stock

With 2 selectors i need to reduce stock individually and calculate final price.

Is possible? (Excuse my bad english)

Thanks :)

Read more here: Woocommerce stock reductions in variable products


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: