2
Answers
Vote up!
0
Vote down!

Products with adult child price

Hi, we're setting up a ticket shop with maybe 40 different activity tickets, most of them will have an adult and child price.

What is the best way to go about setting this up - I'd rather not have to make a product for each activity, just something like:

Number of adults: 1
Number of children: 2

Add to Basket

Does anyone have any ideas on this?

Thanks

Asked by: elkiwi
on December 10, 2013

2 Answers

Vote up!
1
Vote down!

elkiwi,

Cool concept! I would add two price fields to your product, one for adults and one for children. Then I would use Line Item fields that let a user select the number of adults and children for each "activity."

Finally, I would create a rule that sets the final price of the activity based on the number of adults and children.

For the display of product, I would simply list how much an adult ticket costs and how much a children's ticket costs (instead of just one price field).

Take a look at some videos that use line item fields:

http://www.drupalcommerce.org/search/site/customizable%20products?f[0]=b...

This is a good "first time to use it" video: http://www.drupalcommerce.org/videos/demo/introduction-line-item-fields

Josh

Josh Miller
Answer by: Josh Miller
Posted: Dec 18, 2013
Vote up!
0
Vote down!

I've the same problem for a tourism booking site, the main problem is that i need to split child price and adult price and have both available to buy with one add to cart button. i tried many approach but i'm unable to calculate the final price because the subtotal does not change also if i setled all rules correctly

Posted: Aug 19, 2014