Support

Home Forums Event Espresso Premium Volume Discount front-end display?

Volume Discount front-end display?

Posted: October 23, 2013 at 4:08 pm


Angela Haddon

October 23, 2013 at 4:08 pm

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!


Dean

October 24, 2013 at 1:03 am

Hi Angela,

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.


Angela Haddon

October 25, 2013 at 7:00 pm

Thanks Dean, that all makes sense – much appreciated 🙂

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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Angela Haddon 6 years, 1 month ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!