sanaconeltantra
Forum Replies Created
-
Forum: Plugins
In reply to: [Participants Database] How to remove decimal in currency fields?I can actually change the value using $this->field->value but I have to provide an integer and it will add the .00 anyway with the print_value
- This reply was modified 4 years ago by sanaconeltantra.
Forum: Plugins
In reply to: [Cool Integration for LearnPress & WooCommerce] Add to default categoryHey Matias!
Yes I hope you can upload a new version soon that will also handle free courses because for now it just leaves the price empty in the WC product so I have to update that manually as well.
Thanks!I managed to do what I want. I used post IDs that were not used and it worked great.
Silly me I thought this event was triggered when a user gets to a certain number of points but apparently it’s the minimum of points earned on one single event.
I understand now that I need to use the Gamipress step Reaches a points balance.
This setting is a bit confusing for non English speaking people.NB : Of course the users did not have already that minimum number of points and going up and down that minimum threshold doesn’t trigger anything will the 3 ways I mentionned above
Forum: Plugins
In reply to: [Participants Database] Display record with tabsAwesome thank you! =)
It’s ok I found out why, in the backend WP is expecting this date format :
$event_start_date = ’16/11/2020′;
When in the frontend it was like this :
$event_start_date = ‘2020-11-16’;
So I was getting these errors :
[13-Nov-2020 03:45:04 UTC] PHP Notice: Trying to get property ‘valid’ of non-object in /home2/eltemplo/public_html/blog/wp-content/plugins/events-manager/classes/em-event.php on line 1547
[13-Nov-2020 03:45:04 UTC] PHP Notice: Trying to get property ‘valid’ of non-object in /home2/public_html/blog/wp-content/plugins/events-manager/classes/em-event.php on line 1547
[13-Nov-2020 03:46:41 UTC] PHP Deprecated: WPSEO_Utils::get_title_separator is deprecated since version WPSEO 15.2 with no alternative available. in /home2/public_html/blog/wp-includes/functions.php on line 4787
[13-Nov-2020 03:47:07 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /home2/public_html/blog/wp-content/plugins/query-monitor/classes/Backtrace.php on line 97
[13-Nov-2020 03:47:07 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /home2/public_html/blog/wp-includes/functions.php on line 6335OK I figured it out but now I can’t create an event when the code is running in the backend, only when I call PHP from the browser. Opening a new ticket for that thanks
OK it’s good I can create programmatically events with categories but now I want to book automatically users to the event. I think I need to use the EM_Booking class but if you know a code to do that I would really appreciate it because I think I need to create a ticket before I can book someone right?
Thanks!!Hey again!
You made amazing tutorials but I couldn’t find how to create an event programmatically.
I will try with this code below and will get back to you
https://www.damiencarbery.com/2017/10/create-events-manager-events-programmatically/Hi Angel,
Thanks for your reply.
Yes I want to let the user book only if there is no another booking overlapping during that date/time in the global calendar events.ics
For now I’m using Easy Appointments EA because the plugin handles availability in the calendar before booking.
What I would like is to add EA events automatically into EM using these hooks :
https://easy-appointments.net/documentation/hooks-and-callbacks/
What is the best way to add programmatically en event into EM? I wanna avoid inserting directly into em_events table so I prefer to use your corresponding function.
Thanks a lot for your help