Posted: December 15, 2016 at 12:03 pm
|
I know that EE4 does not have the price modifier, but I am hoping there might be an alternative that you can suggest. What I require: When entering an event, participants have the option to purchase a t-shirt (at extra cost). I’d rather not set up another ticket option, which I know is one option but its really not ideal. |
Hi Matt, There’s some example code that shows how to add a surcharge to the order based on the answer to a registration form question. In which case, the t-shirt option could be captured as a yes/no question in the registration form. |
|
|
Thanks – I will have a good look through that. Much appreciated. |
|
Looking through the code and the instructions written, I see they have set it to just be for the primary registrant. Do you know if this must be the case? Ideally it needs to be an option for every entrant, regardless of who is registering. |
Not necessarily. So to use that code as-is, your question options would be set up to be something like “How many t-shirts for this group registration?” Then your answer values would increase the price modifier by x amount. i.e. 1 shirt $20, 2 shirts $40. If you want to set a tshirt yes/no question for each registration, that’s probably do-able, but the code from that example would need to be refactored quite a bit. |
|
|
I realise this is very specific to the event/question, but the problem then would be no idea of sizes and who ordered what. Ideally I’d like to have an entered rider be the rider paying extra and also know their size. |
There’s only one payment per transaction though. It’s not like you can divvy up payments within one transaction. Also, you can capture size info in a separate question. Ultimately though, if you want a price modifier function to meet your exact specifications, that’s something that a PHP developer could code up using the same hooks from that example code. |
|
|
I just need to get the answer clear in my head. – If I use the code (changing name/price, etc), can it be used on a group booking and have the option for each attendee to be asked the question and change price on each attendee depending on the answer? The best alternative if that can not work that I can see if to create separate tickets. Although not ideal, it would go from 2 tickets to 4 tickets – which isn’t too crazy. |
The code in the example snippet is not intended to be used for a question that would appear for each attendee. If you want to use that code, you’d have to set a question for the Primary attendee like “How many T-shirts?”. Then each answer option would set a price modifier amount.
Yes, however it’s important to remember that each ticket is a registration. |
|
|
OK, thanks. I have no issue if 1 person put in details for 4 people, but it would be a problem if they have to pay 4 separate times. |
I am guessing this could also be used for like VIP access of some kind? Like: Would you like early access? If yes, require a full-length ticket (for instance, if the event were 2 days, require a 2 day ticket in order to add a 1-day early access), or the like? I will have to look at that snippet… |
|
When someone puts in the details for 4 people, it’s one payment. |
|
|
Thanks Josh. |
The support post ‘Alternative to Price Modifier for EE4’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.