Conditional attributes/addons and content
-
Hi,
I have quite a complicated use case here, so I will do my best to explain.
I am using WooCommerce to sell bookings to events. The booking is for a hotel room.A visual representation to explain the flow:
Now, for the first part, the user should be able to select a maximum number of either male/female attendees. There should be a price per unit of male/female adult. And a max total of male and female.
Then for the second part, the user should be able to select a max number of infants, and then a max number of childrens/teens (in total). There should be a price per unit of infant/children/teen.
And for the third part, IF children/teen are selected, and option to enrol them into a ‘youth programme’ should be enabled. There should be a price per unit. The max quantity allowed here should be the total of children/teen.
—————–
I understand that I can do most of this using WooCommerce’s Product Addons plugin, however I don’t think it will allow setting max quantity value per ‘product addon’.
The complication lies in some room bookings having max space for 4 young people (children and teens, two different attributes/products addons), so how would I limit the max selected total of two different attributes/products addons?
If for example one room has max space for 4 young people, this could be a variation of 2 children + 2 teens, or 1 child + 3 teens, etc.
Also, if there are 2 young people (children and teens) in total, then the max quanity allowed in ‘youth programme’ should be the total of children+teen.—————–
Now, for the second part; if the user selects x number of children/teen to enrol into the ‘youth programme’ (for which the max value which should be a total of the selected children + teen count), there should be a way to collect the names/ages or those people.
—————–
I hope this isn’t too complicated, and possible through existing WooCommerce plugins.
I appreciate anyone’s advice/guidance.
Thank
- The topic ‘Conditional attributes/addons and content’ is closed to new replies.