Support

Home Forums Event Espresso Premium Please select datetime

Please select datetime

Posted: May 28, 2018 at 2:32 pm

Viewing 2 reply threads


Michel Hurrell

May 28, 2018 at 2:32 pm

Hey guys,
I am getting please select datetime

I have it set to disabled in my template setting. Thanks guys.

See here
https://www.vivaci-t.ca/viva-cite-immersion/

Version WordPress: 4.9.4

Version PHP: 7.0.30

Version MonSQL 5.5.5

Event Espresso Version: 4.9.57.p

Adresse WordPress(URL) https://www.vivaci-t.ca

Adresse du site(URL): https://www.vivaci-t.ca


Michel Hurrell

May 28, 2018 at 3:41 pm

Instead of adding three threads i have a few other questions.

2. How do i change “cancel registration”

I followed this:
https://eventespresso.com/wiki/how-to-change-wording-with-poedit/#custom-function

// replace cancel registration    
function mycustom_filter_gettext( $translated, $original, $domain ) {
 
    // This is an array of original strings
    // and what they should be replaced with
    $strings = array(
        'cancel registration' => 'Inscription annulée',
        
        // Add some more strings here
    );
 
    // See if the current string is in the $strings array
    // If so, replace its translation
    if ( isset( $strings[$original] ) ) {
        // This accomplishes the same thing as __()
        // but without running it through the filter again
        $translations = get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }
 
    return $translated;
}
 
add_filter( 'gettext', 'mycustom_filter_gettext', 10, 3 );
}

3. My submit button for promo codes does not look right, see screenshot

http://vivaci-t.ca/wp-content/uploads/2018/05/ScreenShot.png

I added this to my css but it wasn’t helping

#ee-spco-payment_options-reg-step-form-payment-options-before-payment-options #ee-promotion-code-submit {
	left: 2px !important;
}

Thanks guys any help would be great


Tony

  • Support Staff

May 29, 2018 at 5:06 am

Hey guys,
I am getting please select datetime

I have it set to disabled in my template setting. Thanks guys.

Although that setting disables the drop-down for that feature, the text is still added but not used in this case. It should be hidden by default but something on the site is changing the mark up of input buttons on your site using javascript which is then overriding the styles to hide the text.

You can add something like:

.ticket-selector-submit-btn-wrap .ticket-selector-disabled-submit-btn-msg {
    display: none;
}

To your site under Dashboard -> Appearance -> Customize -> Additional CSS to hide the text again, however you may run into more issues due to that JS (likely from the theme).

2. How do i change “cancel registration”

There is no ‘cancel registration’ string within Event Espresso, there is a ‘Cancel Registrations’ string but I’m not sure if that’s what you are looking for.

When you translate strings the original string must match exactly or it wont work, so can you add a screenshot of the ‘cancel registration’ string you want to change, please?

3. My submit button for promo codes does not look right, see screenshot

http://vivaci-t.ca/wp-content/uploads/2018/05/ScreenShot.png

I added this to my css but it wasn’t helping

Yeah, again that’s caused by your theme doing weird things, try something like this:

#ee-spco-payment_options-reg-step-form-payment-options-before-payment-options br {
    display: none;
}

#ee-promotion-code-submit {
    top: 15px!important;
}
Viewing 2 reply threads

The support post ‘Please select datetime’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso