Discussions

1 product with 2 different prices

Hello!

For a ticketselling site I need 2 prices for each product, one for adults, one for children.

The children price varies for each product, so there is no percentage relationship between adult price and the discount for children.

I thought about using two products for each display, one for children, one for adults.
But each product for which the tickets are sold, has a limited stock. So using two products is no choice for me.

Any idea?

thanks, Marc

Posted: Nov 13, 2011

Comments

rfay Randy Fay on November 13, 2011

You can add another commerce_price field to the product for the alternate price, and then use a product pricing rule to update the price based on whether they select adult or child. But somehow you're going to have to figure out whether it's an adult or child ticket.

If you went the traditional way (multiple produts), you could use a rule on the child checkout to update the adult stock, so that would be another technique.

dasmoermel on November 13, 2011

Hej rfay!

Thank you for your answer!

I think the traditional way won't work, because children and adult tickets can be added the the cart at the same time.
An example:
A product has a stock of 4, so the adult and the children product has each a stock of 4. If the customer adds 3 adult tickets and children 2 tickets, it will work for him to ckeck out.
Because the decrease of stock is performed after checkout. Well, I could decrease the stock, when a product was added to cart, but then I have to manage the cart expiration.
Hope you understand me ;)

I thought about another "non-tradtional" way.
What about managing the stock in the Product Display and the decrease on checkout via rules.
So I could add as much prices I want.
Rfay, you as a commerce professional, what do you think about that?

thanks a lot, Marc

shi99 on August 30, 2012

I know it's an old post but what you say he is exactly what I'm trying to do now.

A manger adds an Event (Product Display) and adds multiple Event Tickets (Product Type) using the inline entity form

So one event could have one ticket type for $50
Another event could have two ticket types: Members $40, non-members $50.
The thing is like you the stock level is based around the event not the ticket

I am currently trying to do the stock through the Product display so that multiple tickets can share the same stock.

Has anybody tried this or perhaps somebody found a nicer solution?

Thanks