Posted: August 15, 2016 at 10:25 am
|
Hello, I’m using the table view template for some time now, and it works great. What I would like to do is to add a conditional format to the “Register” button, so that it turns red when there is less than 2 places left for a given course on this page: https://www.genevaphotoclub.com/dates-prices/ I know another site who did this with EE3 – can I do that with EE4? What kind of code would I need for that? Thanks in advance, |
Hello, We share code examples as starting points when available but we cannot write custom coding for you. I recommend reaching out to an Event Espresso professional that can help you customize the Events Table View template to your needs: https://eventespresso.com/developers/event-espresso-pros/ — |
|
|
Hi there, I fully understand. I just need some starting points and an opinion on how difficult this should be – so that I can contract a programmer to do it. Thank you in advance, |
The EE_Event object has a
Will set Note that the above method is included in core however its behavior may change in the future, this is because spaces available can be difficult to calculate depending on how your event is set up (using datetime and ticket limits) so we may need to alter how it works. |
|
|
Thank you for the perspective, I will forward it to a programmer. Overall, which number do you advice me to base the code to determine the capacity? Event Datetime / Limit Would be great if you let me know when you decide to change this and how, so that I can be ready when you’re done. |
It depends on your event type, how you have your ticket pricing setup, the amount of datetimes etc. In short users want to limit the events differently depending on their needs, hence why the above method may change if we find it needs to modified to suit another use case.
You can find a list of all changes within the change log here: |
|
The support post ‘Events Table View Template: Conditional format of "Register" button’ 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.