- This topic has 1 reply, 2 voices, and was last updated 5 years, 4 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › Fixed discount depending on value in another field
Dear Franky,
I am trying to use discounts the first time. As far as I understood the discount can be offered for a specific coupon or – if the coupon field is left blank – as an “early bird” offer. What I am looking for is something different: The discount should be given in dependance of another field. To be more concrete: If the user checks a field indicating that he/she is a member of a society than the price should be reduced by 10,- €.
In your documentation you give an example of an code for 30% discount if a certain field called MY_FIELD_NAME has the value “yes”. So how do I have to modify this code to give an fixed discount?
And what about multibooking? Does it give 10,- € discount for every seat booked?
Best regards,
Meike
IF you want it fixed based on another field (and not a coupon), just indicate for that other field “Extra charge” as “yes”, and specify in the “field value” the discount (e.g. -10), and in the “field label” your text of choice.
For a fixed discount example based on code, just change in the given example the line
$calculated_discount=$booking['event_price']*$booking['booking_seats']*.3;
by
$calculated_discount=10;
For multibooking events it is all a little more trickier since the bookings on their own are unrelated, but check first what happens 🙂
Hint: use #_DYNAMICPRICE in your rsvp form to see the total price (which updates live based on your discounts).