KramBie
Forum Replies Created
-
I am not completely understanding what you want to do, but showing content on page can be controlled with the placeholders
logged_in
andnot_logged_in
. See
https://wp-events-plugin.com/documentation/conditional-placeholders/#otherI found one solution: Create a ticket which is only available on the event date itself. Not visible on the booking form, but an EventManager can assign that ticket earlier.
However there might be a better solution.I figured it out. I also created its counterpart
has_no_attendees
, but in that snippet I made a typo:if ('has_attendees' == $condition) {
without the_no_
which gave weird results. After correcting is worked as to be expected.Adding this plugin is a bit too much for just changing word especially when it is jut a nice to have modification. But I keep this in mind if there are more translations needed.
I must have missed something. Steps I did:
1. Add the Code Snippets plug in.
2. Added the few lines of code into Code Snippets.
Unfortunate that wasn’t working.To be sue I also added a line
$EM_Ticket->name = "My Standard Ticket2";
but that wasn’t working either. Must I configure something the EventManager listens to the Code Snippets plugin or something like that?BTW: If this is hard to solve, leave it. This is just a nice to have thing. You already helped me a lot so far.
Thank you this is working great. And I was able to extend it with adding the ticket name based on the code example you gave me earlier this week.
I got the feeling that you spent some time to work out this sorting example and that is highly appreciated.Just a wild guess but maybe a specific right is switched off by accident. Goto Events –> Settings –> Tab General –> Section Access Rights and check there.
And this works now too. Thanks once again.
Thank you, I missed those parenthesis. That did the trick.
Hi joneiseman,
Unfortunate this classification isn’t working:
foreach ( $EM_Booking->get_tickets as $EM_Ticket ) {
echo 'In the for each';
echo $EM_Ticket->name;
}To be more precise, the loop is not getting a list of tickets. I confirmed it because the line ‘In the for each’ isn’t in the output either. What am I missing?
I found a workaround by using the placeholder
#__BOOKINGTICKETNAME
, but that works only in single ticket mode. So I prefer your solution.<The plugin has too many !important statements in its CSS making it impossible to override, without adding CSS hacks.>
I solved that by using an ID for my custom table combined with the !important attribute. I started with my own class as selector and that indeed wasn’t working. But an #ID selector (with !important) is more specific the !important statements in the CSS of EventManager.- This reply was modified 1 month, 2 weeks ago by KramBie.
Thanks will try that next week also. Quite busy with other work right now.
Thanks, will try that next week.
Hi kevanbulmer,
I am aware of that. Luckily in my case not a problem, I just wanted to customize a HTML table with my own class and that is working.
But you are right overriding the CSS is quite hard. I guess if you need to override the standard CSS the only solution is to work with inline CSS.Ah, thanks, of course. I was a digging to deep in the EventManager documentation that completely forgot that I can modify the css in the WordPress template. Thanks for resetting my mind. ??