Expresso Store add quantity to product modifiers

I have a product with 2 modifiers. ie: an event with adult and child prices.

I need to create a product so you can add to the cart and say I want # of adults and # of children click add to cart.

I do not want to have 2 separate products for children and adults. Is this possible to add a qty to each modifier?

1 Answer 1


There are a couple ways that you could do this.

The first would be to create 2 different modifiers One called Adult and one called Child using the variation modifier. Then you will want to create 0-10 or however many tickets you want with `price * quantity in the field. This would allow a user to add say 5 adult tickets and 3 child tickets all in a single action. This is not how I would do it personally because it doesnt allow you to use the built in limit stock variables and logic and lumps the total tickets prices to the main product which I find confusing to the end user.

Your second option would be to create a single variation modifier with Child & Adult types and set the price for each. Then in your template you would have the user select the ticket type, enter the quantity and then submit to add the product to the cart. In this case I would do this via AJAX so that the user could easily then select the other option and add any of that ticket type to the cart as well. This allows for use of Stores built in limit stock functionality which is usually important when you are selling tickets. I have seen this taken a bit further where the developer duplicated the channel entries tag and wrapped it in the product_form_tag then in his template he had the same product with the modifiers already selected (based on different conditionals in his duplicated channel entries tag) so it allowed the user to add both ticket types to the cart in the same submit.

  • does Store have any built in AJAX functionality that would do this or would I ned to do that custom development myself? Commented Dec 22, 2015 at 13:31
  • There isn't anything built in that I know of but you shouldn't need anything super complex, you would just need to submit the form and refresh it Commented Dec 22, 2015 at 13:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.