• Resolved ljgarnes

    (@ljgarnes)


    How do I hide the Register For Event button for specific events?

    This event is pay at the door. I don’t need registration for it.

    • This topic was modified 5 years, 2 months ago by Jan Dembowski.
    • This topic was modified 5 years, 2 months ago by Jan Dembowski. Reason: Moved link to link field

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @ljgarnes,

    You can set the registration deadline date to hide the register button. Please set register deadline date so it won’t show after that date.

    I hope this helps.
    Thank you

    Thread Starter ljgarnes

    (@ljgarnes)

    Thank you. This should be more intuitive. At least in your FAQ. But I would suggest and enable/disbale button.

    Thread Starter ljgarnes

    (@ljgarnes)

    I had to type in 2018 date to get it to disappear. It wouldn’t let me go before today’s date. This is very difficult to explain to my clients. It shouldn’t display at all when a date isn’t keyed. Or give us a button to disable. Thanks

    • This reply was modified 5 years, 2 months ago by ljgarnes.
    • This reply was modified 5 years, 2 months ago by ljgarnes.
    Thread Starter ljgarnes

    (@ljgarnes)

    It puts the old date on the page too. I just want it to go away.

    Registration End Date
    2018-11-28

    Hi @ljgarnes ,

    If you want to disable registration button on all events you can do it but for each event you have to follow that.

    You can enable date picker past date by adding this js to your theme side

    jQuery('input[data-picker="datepicker"]#_event_registration_deadline').datepicker({
            					minDate 	: '-1y'
            				});

    Thank you

    Thread Starter ljgarnes

    (@ljgarnes)

    I want to disable it only for Events that do not require registration. If I put an prior date the button goes away but the text does not.

    Eg. /lakelogan/event/contra-dancing/

    I put the prior date as suggested but the text is still showing up… so then it makes people think they can’t attend the Event.

    Registration End Date
    2018-11-28

    I need a way to disable the Button and Text for Events that do NOT require registration. I have some events that require registration so I can’t disable it for all Events.

    Seems pretty simple to add a disable button. We shouldn’t need to fake the system with an older date. Can you add a disable button per Event? Or do not disable the button/text when a date isn’t keyed. Why disable it when there is not date keyed?

    I would love to resell this Plugin in my line of Products but it has to work in a real world… This is a minor issue to fix.

    • This reply was modified 5 years, 2 months ago by ljgarnes.
    • This reply was modified 5 years, 2 months ago by ljgarnes.
    • This reply was modified 5 years, 2 months ago by Jan Dembowski.

    Hi @ljgarnes,

    Please follow the below steps to create registration enable/disable button on your site.
    1. Create a custom field called Enable Registration with yes/no radio button in your field editor and add following code to your theme’s functions.php file

    add_filter('event_manager_registration_addon_form','your_theme_name_enable_registration_button');
    function your_theme_name_enable_registration_button(){
    $id = get_the_ID();
    $registration_button = get_post_meta($id,'_enable_registration',true);
    if($registration_button == 1)
      return true;
    else
    return false;
    
    }

    Note: you just need to make sure radio button key value is 0 or 1. If you have changed to yes/no change in if($registration_button == 'yes')

    if you don’t know how to do that please create a support ticket here https://support.wp-eventmanager.com

    I hope this helps.
    Thank you

    Hi @ljgarnes,

    Thank you for update review and I am making this thread resolved.
    Thank you

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Register For Event’ is closed to new replies.