I’m using Volume Discount, and would like clients to see something like ‘purchase more than 5 tickets and receive a 10% discount’ without manually entering the information. Is there a way to pull information from the plugin Settings for display at the front-end (ie. by inserting the appropriate PHP functions in the template files?). Incidentally, this is a fantastic plugin that works perfectly ๐ Thanks!
Thanks for the feedback and glad you like the plugin!
I think the best way would be to make use of the Event Meta Field option in Volume discounts.
Adding the event meta means you can track which event has that meta key and if it exists echo out a message. This has the benefit of being able to add or remove events from the volume discount dynamically by just remove the meta key from the event. The flaw is that you need to edit each event individually at to add/remove the meta key.
Something simple like
$mymeta = unserialize($event->event_meta);
if(array_key_exists("dean", $mymeta)) { echo "This has a volume discount"; }
You could also do it by using categories, but the flaw with that is if you add an extra category or remove one you will need to update the code snippet accordingly.
Thanks Dean, that all makes sense – much appreciated ๐
Viewing 2 reply threads
The support post ‘Volume Discount front-end display?’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.