WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] "Allow bookings with registered emails" does not works (6 posts)

  1. skanthemore
    Member
    Posted 5 months ago #

    Hello,

    "Allow bookings with registered emails" does not works on demo version,
    I would like to buy it but first I have to fix it.

    This is the configuration that I have set in order to not have duplicate emails

    Allow guest bookings - YES
    Allow double bookings -NO

    Enable No-User Booking Mode - NO
    Allow bookings with registered emails - YES

    Alguna idea?

    Otro camino seria buscar otro plugin, pero este me gusta mucho por su integraciĆ³n con WPML.

    Best regards,

    https://wordpress.org/plugins/events-manager/

  2. caimin_nwl
    NetWebLogic Support
    Posted 5 months ago #

    Hi,

    What versions of WordPress and Events Manager do you have?

    What happens when someone books / registers? Thanks.

  3. skanthemore
    Member
    Posted 5 months ago #

    Hello,

    I'm using de last versiĆ³n of each other,

    WordPress 3.8.1
    Event Manager 5.5.2

    The problem is that I want people to register to the event without having to register with WordPress.

    If I do so, duplicate emails appear in the booking section if you sign up more than once. And I do not like.

    The problem I see in management,
    As you can not sort the columns of email, it is difficult to see how many are duplicates.

    I hope habaer been clearer,

    thanks
    best regards,

  4. caimin_nwl
    NetWebLogic Support
    Posted 5 months ago #

    Because Events Manager uses the WordPress registration and login system, when someone registers for an event a WordPress account is created.

    Have you thought about using No-User Booking Mode (Events > Settings > Bookings > No-User Mode)?

  5. skanthemore
    Member
    Posted 5 months ago #

    I tried!

    If I use it, a user can book the same event many times,

    ;(

    I think this is a great plugin, but is not good for do a simple registration,

    I'm developing my own plugin,
    I hope somebody find a solution to my problem ;)

    Thanks for your response,
    Best regards

  6. angelo
    NetWebLogic Support
    Posted 5 months ago #

    you can try to use No-User Booking Mode and then use this custom filter

    function my_em_verify_email($result,$EM_Bookings){
    
    	foreach ($EM_Bookings->bookings as $EM_Booking){
    		if( $EM_Booking->person->user_email == $_REQUEST["user_email"] && !in_array($EM_Booking->booking_status, array(2,3)) ){
    			$result = true;
    		}
    	}
    
    	return $result;
    }
    add_filter('em_bookings_has_booking','my_em_verify_email',100,2);

    *modify as needed
    *not fully tested but something like this

    As for where to paste this : http://wp-events-plugin.com/tutorials/how-to-safely-add-php-code-to-wordpress/

Reply

You must log in to post.

About this Plugin

About this Topic