pvwij
Forum Replies Created
-
Forum: Plugins
In reply to: [Events Made Easy] Payment descriptionThis is my code but the payment description is still the deafult:
function my_eme_rsvp_payment_descr($description,$payment,$gateway_name) { // $gateway_name is e.g. 'mollie', so you can change the description based on the gateway used if desired $booking_ids = eme_get_payment_booking_ids($payment['id']); $booking = eme_get_booking($booking_ids[0]); $event = eme_get_event($booking['event_id']); $person = eme_get_person($booking['person_id']); $lastname = $person->lastname; $firstname = $person->firstname; $evenement = $event->event_name; $description = "Betaling van $firstname $lastname voor $evenement"; return $description; } add_filter('eme_rsvp_paymentform_description_filter','my_eme_rsvp_payment_descr',10,3);
- This reply was modified 6 years, 2 months ago by pvwij.
Forum: Plugins
In reply to: [Events Made Easy] Payment descriptionSo if I add that line of code the payment description will be $description ?
Forum: Plugins
In reply to: [Events Made Easy] Payment descriptionI found a missing character in the first line of code.
Missing p in rsvp:
function my_eme_rsv_payment_descr($description,$payment,$gateway_name) {Changed it but nothing happens.
Forum: Plugins
In reply to: [Events Made Easy] Payment descriptionI have added the filter as below but the payment description is not changing, what am I doing wrong?
function my_eme_rsv_payment_descr($description,$payment,$gateway_name) { // $gateway_name is e.g. 'mollie', so you can change the description based on the gateway used if desired $booking_ids = eme_get_payment_booking_ids($payment['id']); $booking = eme_get_booking($booking_ids[0]); $event = eme_get_event($booking['event_id']); $person = eme_get_person($booking['person_id']); $lastname = $person->lastname; $firstname = $person->firstname; $evenement = $event->event_name; $description = "Betaling van $firstname $lastname voor $evenement"; return $description; } add_filter('eme_rsvp_paymentform_description_filter','my_eme_rsvp_payment_descr');
Forum: Plugins
In reply to: [Events Made Easy] SEO / PermalinksThat solved the problem. Thanks a lot again for your’e quick reply en very quick fix for the problem.
Forum: Plugins
In reply to: [Events Made Easy] SEO / PermalinksThis one is also not working after updating the event:
https://www2.dekorte.nl/events/33ste-open-internationale-zuidlandse-judokampioenschappen/
There is a nasty 3 in the event name!!
Forum: Plugins
In reply to: [Events Made Easy] SEO / PermalinksDeleted 39e- and that solved the problem. Strange thing is that there is also an event with 21e at the beginning of the slug and that one is still working fine after updating the event:
Forum: Plugins
In reply to: [Events Made Easy] SEO / PermalinksThis one is not working:
https://www2.dekorte.nl/events/39e-internationale-judotoernooi-vjv/With ID it’s working:
https://www2.dekorte.nl/events/18/39e-internationale-judotoernooi-vjv/i have updated another event where there was still an ID in the url. The iD in the url is gone and the new url is working fine.
I have not installed any security plugin.
Forum: Plugins
In reply to: [Events Made Easy] SEO / PermalinksThe problem occured after the event was edited. When I go to the url https://www.domain.nl/events/id/eventname it works.
I have added a line of text in the event details and updated the event but still the same result.
Forum: Plugins
In reply to: [Events Made Easy] Prefill registartion fieldsSorry sorry sorry sorry!!!!!
I didn’t update EME to 2.0.69
Shame on me!
Forum: Plugins
In reply to: [Events Made Easy] Prefill registartion fieldswp_get_current_user does return the metadata. I use a php code snippet plugin to test the php code in a page and it does echo the user meta data.
If I use you’re code and only change “testfield” in my EME custom field name “JBN Number” it doesn’t return EEE. Is my expectation correct or am I completely wrong?
Forum: Plugins
In reply to: [Events Made Easy] Prefill registartion fieldsI am trying to use the new filter for changing field values. I have a custom formfield named “JBN Nummer” and I want this to be filled with the users jbn_number from wp_user.
This is my code but nothing happens:
function my_formfield_filter($formfield,$postfield_name,$value) { // do a print_r of $formfield, etc ... to see the content. Check the wordpress userid with wp_get_current_user() and do all magic you want :-) // as an example, let's change the value of a field if it is called 'testfield') $current_user = wp_get_current_user(); $jbn = $current_user->jbn_number; if ($formfield['field_name']=='JBN Nummer') { return $jbn; } else { return $value; } } add_filter('eme_field_value_filter','my_formfield_filter',10,3);
What am I doing wrong?
Forum: Plugins
In reply to: [Events Made Easy] Prefill registartion fieldsThank you. Do you have an example how to use this. I am not farmiliar with the use of filters.
Forum: Plugins
In reply to: [Events Made Easy] Prefill registartion fieldsIs there a way to prefill an custom field with the value that was used in a previous registration (data from the person that is created by eme)?
Forum: Plugins
In reply to: [Events Made Easy] Payment descriptionI am not familiar with filters. What can I use here:
$description = …. // change thisCan you help me with an example?