• After updating to newest version of Salon Booking, the datepicker is not working. Only showing an input field instead. Have disabled all plugins, etc and done all recommended troubleshooting. Also all formatting seems to be gone. Client urgently needs resolution. Thanks

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Dimitri Grassi

    (@wordpresschef)

    Hi,

    switch to a standard wordpress theme, make a test, then restore your theme.

    Thread Starter concentus

    (@concentus)

    Didn’t work. I found an older version of the plugin on your site and installed that and everything is working fine again. I guess I just won’t upgrade any more. Thanks.

    Same problem after plugin update.
    As the console shows, css files and scripts are not loaded (see attaches below):

    OLD Version (OK)

    NEW Version (FAIL)

    I figured out the reason.
    Loading of styles and scripts occurs if the content ($post->post_content) contains a shortcode ([salon/] etc.).

    But if the shortcode is inserted directly into the .php post/page template as
    echo do_shortcode('[salon/]');

    then, accordingly, styles and scripts are not loaded.
    Hope developers fix this issue in the future, @wordpresschef.
    ——————————————————-
    As a temporary solution, I suggest disabling shortcode verification in the content, but then styles and scripts are loaded on every page of the site.

    /salon-booking-system/src/SLN/Action/InitScripts.php
    line #24

    public function hook_enqueue_scripts() {
    	    global $post;
    	    if (!$this->isAdmin && is_a( $post, 'WP_Post' ) /* && (
                        has_shortcode( $post->post_content, SLN_Shortcode_Salon::NAME ) ||
                        has_shortcode( $post->post_content, SLN_Shortcode_SalonMyAccount::NAME ) ||
                        has_shortcode( $post->post_content, SLN_Shortcode_SalonCalendar::NAME ) ||
                        has_shortcode( $post->post_content, SLN_Shortcode_SalonAssistant::NAME ) ||
                        has_shortcode( $post->post_content, SLN_Shortcode_SalonServices::NAME )
                    )*/
                )
    	    {
    		self::preloadScripts();
    		self::enqueueTwitterBootstrap(false);
    		$this->preloadFrontendScripts();
    	    }
    	}

    ——-

    Temporary fix screenshot

    • This reply was modified 3 years, 5 months ago by Yurets.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Date picker not working. Only showing input field’ is closed to new replies.