Support

Home Forums Pre-Sales Automatic pro-rating course prices

Automatic pro-rating course prices

Posted: October 17, 2014 at 2:27 pm


Rich Stieg

October 17, 2014 at 2:27 pm

We are a web development company and have a current prospective user who offers classes for high school students for tutoring in various subjects. For example, they have 9 week classes that run during each quarter, and many students start part-way through the quarter. Can EE4 accommodate automatic pricing adjustments based on when the student starts the class? For example, if they start with the 4th weekly session of 9, we would want the system to automatically adjust the price downward by one third. My customer can be flexible within reason if there’s a way to do this without a lot of extra effort each time. This is a very common situation for them. Also, if this can be done with the JSON API, is that available in EE4? Your site seems to indicate that’s only in EE3, but in the comparison chart it shows “hooks, actions and filters” to be available only in EE4. Are these 2 different things?


Lorenzo Orlando Caum

  • Support Staff

October 17, 2014 at 3:49 pm

Hi Rich,

The JSON API is not available for Event Espresso 4.

However, EE4 does have a ticket scheduling feature that could be used to open tickets for a certain period of time.

Here are three tickets:

http://cl.ly/image/1Z27193N0Y3n

Expired, Active, and Upcoming

You could use some CSS to hide tickets with a status of expired and upcoming. This will ensure that the registrants only see the active tickets.

Here is the CSS for that:

.ee-ticket-expired-ticket, .ee-ticket-upcoming-ticket {display:none;}

And this is the result:

http://cl.ly/image/3C0I0K1N1m2c


Lorenzo


Rich Stieg

October 17, 2014 at 3:55 pm

Thanks, but I don’t think I understand how this would work. First of all, these are all ticketless events. And we need this to work automatically for all courses. Setting up something like this for every possibility for every course would be much too cumbersome. Also, perhaps the term “ticket” is confusing the issue for me…


Rich Stieg

October 17, 2014 at 4:01 pm

Another thought – while this customer would prefer to go with EE4, this prorated ticket issue is VERY important to them. Could this be handled automatically in EE3 with the JSON API? We have very competent programmers available to us.


Lorenzo Orlando Caum

  • Support Staff

October 17, 2014 at 4:02 pm

Hi,

Event Espresso requires a ticket/registration to complete registration checkout. The term ticket can be changed to something else with a gettext filter:

https://gist.github.com/lorenzocaum/b4bbd1bb839a1c80b2b4

This can be added to your child theme’s functions.php file or a site specific plugin. This will ensure that this customization will not be lost on a software update.


Lorenzo


Lorenzo Orlando Caum

  • Support Staff

October 17, 2014 at 4:08 pm

Hi,

The JSON API add-on is for reading data from Event Espresso. For example, it is used for connecting your site with the mobile apps.

Events cannot be created using the JSON API.


Lorenzo


Rich Stieg

October 17, 2014 at 4:10 pm

Yes, that’s fine. However, I still need a way for the system to automatically change the price based on the number of remaining class sessions. What would you suggest, and for which system? Is this something that would have to be done by your customization group?

-Rich


Lorenzo Orlando Caum

  • Support Staff

October 17, 2014 at 8:06 pm

Hi Rich,

We have a directory of professionals here:

https://eventespresso.com/developers/

You can also request an estimate from the Event Espresso team here:

https://eventespresso.com/contact/customization-request-form/

However, we do not have any immediate availability.


Lorenzo


Rich Stieg

October 17, 2014 at 8:31 pm

Lorenzo-
Thanks for your replies and ideas, but it seems to me that there must surely be a creative way to do this. For example, would it be possible to consider each “course” as a group of “sessions”, priced at a fixed amount per session, and then use some method to reduce the number of sessions included within the course by one each week? Or possibly some sort of promotional coupon that could automatically (or manually if necessary) reduce the price be a certain percentage at appropriate points in time?

By the way, do you work tomorrow? My customer was hoping we could get an initial proposal to them in time for them to review it over the weekend, and we really need at least a good idea of how this feature could be implemented…


Lorenzo Orlando Caum

  • Support Staff

October 18, 2014 at 10:20 am

Hi Rich,

We have limited staff available during the weekends. You can share the project details through this form and a team member will follow up with you early next week:

https://eventespresso.com/contact/customization-request-form/


Lorenzo


Rich Stieg

October 18, 2014 at 11:37 am

Thanks, but can you answer my questions about other ways this could be handled? We would much prefer to use the system without customization if possible. Thanks.


Lorenzo Orlando Caum

  • Support Staff

October 18, 2014 at 1:40 pm

Hi,

There isn’t a built-in feature for pro-rated pricing. I shared an idea here yesterday for Event Espresso 4:

https://eventespresso.com/topic/automatic-pro-rating-course-prices/#post-123498

If that option won’t work for you, then custom coding would be needed.


Lorenzo


Rich Stieg

October 18, 2014 at 5:55 pm

Lorenzo, you’re not answering my questions. Clearly I realize there is no such specific feature. Equally, your suggestion is not a workable one. You apparently have not considered my suggestions or any other creative solutions, which is very disappointing. Can you forward my question to someone who can at least address my questions? I’d appreciate it.


Lorenzo Orlando Caum

  • Support Staff

October 19, 2014 at 5:58 pm

Hi Rich,

I did read each of your responses and I shared an idea based on what is currently available. Lets try this again:

Thanks for your replies and ideas, but it seems to me that there must surely be a creative way to do this. For example, would it be possible to consider each “course” as a group of “sessions”, priced at a fixed amount per session, and then use some method to reduce the number of sessions included within the course by one each week? Or possibly some sort of promotional coupon that could automatically (or manually if necessary) reduce the price be a certain percentage at appropriate points in time?

First, there is no promotions system currently available for Event Espresso 4. Next, ticket prices cannot be adjusted once registration checkout has started.

Event Espresso 3 does have a promotions system but there is no dated-based condition. Custom coding would also be needed here.

Additional team members will be coming online in a few hours so I’ll ask them to review this support post.

Thanks


Lorenzo


Sidney Harrell

October 19, 2014 at 7:31 pm

Hi Rich,
I would recommend that you download EE4 decaf (the free version on wp.org) and take a look through the code for the php classes dealing with pricing and registrations. You can also take a look here at our EE4 API docs. If you can’t find the hooks that you need in the current version to be able to do the custom work that yor want to, then you can add the hooks and send us a pull request on github to have your hooks added to the next version That’s pretty much the process that we follow in-house when we are doing a customization and don’t have the hooks in EE4 core to be able to do it. One of our reasons for the rewrite that became EE4 was to make a core system that would be as extensible as possible for 3rd party developers.

The support post ‘Automatic pro-rating course prices’ 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.

Event Espresso