Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • I’m also getting a 404 error, I’d really like to get this plugin working, also – I tried registering to your support forums, but no password were sent to either email I registered twice.

    The site I’m trying to get this working is DJHymn.com

    Thread Starter onna

    (@onna)

    FIXED!! ok so here on the support FAQ is something to help you first of all find the error (likely to be some javascript from another plugin or even your theme):
    Why calendar is not show, but booking form is visible ?

    This situation can be, when some other JS script (from some other plugin or active theme) is generate JavaScript error. You can check if you page have errors at the IE at the status bar or at Firefox using Console2 addon. So you need to fix that JavaScript error, or deactivate plugin or theme, which is generate that error. After this Booking Calendar will show up.

    I used it to find this error, which looks like it’s coming from WP-ecommerce plugin:

    Error: jQuery(“form.product_form”).livequery is not a function
    Source file: http://djhymn.com/wp-content/plugins/wp-e-commerce/wpsc-core/js/wp-e-commerce.js?ver=3.8.4.391083
    Line: 273

    apparantly the wp-ecommerce scripts are loaded on every page – that they don’t even need to be on.

    IF you are using WP commerce with this plugin, then here’s a hack to make it work:

    go to /wpsc-includes/theme.functions.php, and comment out ALL the call to jQuery:

    `/* this should comment out all the jQuery loading…
    wp_enqueue_script( ‘jQuery’ );
    wp_enqueue_script( ‘wp-e-commerce’, WPSC_CORE_JS_URL . ‘/wp-e-commerce.js’, array( ‘jquery’ ), $version_identifier );
    wp_enqueue_script( ‘infieldlabel’, WPSC_CORE_JS_URL . ‘/jquery.infieldlabel.min.js’, array( ‘jquery’ ), $version_identifier );
    wp_enqueue_script( ‘wp-e-commerce-ajax-legacy’, WPSC_CORE_JS_URL . ‘/ajax.js’, false, $version_identifier );
    wp_enqueue_script( ‘wp-e-commerce-dynamic’, $siteurl . “/index.php?wpsc_user_dynamic_js=true”, false, $version_identifier );
    wp_localize_script( ‘wp-e-commerce-dynamic’, ‘wpsc_ajax’, array( ‘ajaxurl’ => admin_url( ‘admin-ajax.php’ ) ) );
    wp_enqueue_script( ‘livequery’, WPSC_URL . ‘/wpsc-admin/js/jquery.livequery.js’, array( ‘jquery’ ), ‘1.0.3’ );
    wp_enqueue_script( ‘jquery-rating’, WPSC_CORE_JS_URL . ‘/jquery.rating.js’, array( ‘jquery’ ), $version_identifier );
    wp_enqueue_script( ‘wp-e-commerce-legacy’, WPSC_CORE_JS_URL . ‘/user.js’, array( ‘jquery’ ), WPSC_VERSION . WPSC_MINOR_VERSION );
    if ( get_option( ‘show_thumbnails_thickbox’ ) == 1 ){
    $lightbox = get_option(‘wpsc_lightbox’, ‘thickbox’);
    if( $lightbox == ‘thickbox’ ) {
    wp_enqueue_script( ‘wpsc-thickbox’, WPSC_CORE_JS_URL . ‘/thickbox.js’, array( ‘jquery’ ), ‘Instinct_e-commerce’ );
    wp_enqueue_style( ‘wpsc-thickbox’, WPSC_CORE_JS_URL . ‘/thickbox.css’, false, $version_identifier, ‘all’ );
    } elseif( $lightbox == ‘colorbox’ ) {
    wp_enqueue_script( ‘colorbox-min’, WPSC_CORE_JS_URL . ‘/jquery.colorbox-min.js’, array( ‘jquery’ ), ‘Instinct_e-commerce’ );
    wp_enqueue_script( ‘wpsc_colorbox’, WPSC_CORE_JS_URL . ‘/wpsc_colorbox.js’, array( ‘jquery’, ‘colorbox-min’ ), ‘Instinct_e-commerce’ );
    wp_enqueue_style( ‘wpsc-colorbox-css’, WPSC_CORE_JS_URL . ‘/wpsc_colorbox.css’, false, $version_identifier, ‘all’ );
    }
    }
    wp_enqueue_style( ‘wpsc-theme-css’, wpsc_get_template_file_url( ‘wpsc-‘ . get_option( ‘wpsc_selected_theme’ ) . ‘.css’ ), false, $version_identifier, ‘all’ );
    wp_enqueue_style( ‘wpsc-theme-css-compatibility’, WPSC_CORE_THEME_URL . ‘compatibility.css’, false, $version_identifier, ‘all’ );
    wp_enqueue_style( ‘wpsc-product-rater’, WPSC_CORE_JS_URL . ‘/product_rater.css’, false, $version_identifier, ‘all’ );
    wp_enqueue_style( ‘wp-e-commerce-dynamic’, $siteurl . “/index.php?wpsc_user_dynamic_css=true&category=$category_id”, false, $version_identifier, ‘all’ );

    */`

    then go to your theme header.php file and replace the code you just commented out, introducing their source urls as well like this:

    <?php
    
    	if( is_page(array('products-page','donate','checkout','transaction-results','your account')) || is_post_type_archive('wpsc-product') || 'wpsc-product' == get_post_type() ) :
    
    		global $wp_styles, $wpsc_theme_url, $wpsc_theme_path;
    		$WPSC_URL = get_bloginfo('url')."/wp-content/plugins/wp-e-commerce";
            $WPSC_CORE_JS_URL = get_bloginfo('url')."/wp-content/plugins/wp-e-commerce/wpsc-core/js";
    		$WPSC_CORE_THEME_URL = get_bloginfo('url')."/wp-content/plugins/wp-e-commerce/wpsc-theme";
    
    		wp_enqueue_script( 'jQuery' );
    		wp_enqueue_script( 'wp-e-commerce',               WPSC_CORE_JS_URL	. '/wp-e-commerce.js',                 array( 'jquery' ), $version_identifier );
    		wp_enqueue_script( 'infieldlabel',               WPSC_CORE_JS_URL	. '/jquery.infieldlabel.min.js',                 array( 'jquery' ), $version_identifier );
    		wp_enqueue_script( 'wp-e-commerce-ajax-legacy',   WPSC_CORE_JS_URL	. '/ajax.js',                          false,             $version_identifier );
    		wp_enqueue_script( 'wp-e-commerce-dynamic',       $siteurl			. "/index.php?wpsc_user_dynamic_js=true", false,             $version_identifier );
    		wp_localize_script( 'wp-e-commerce-dynamic', 'wpsc_ajax', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) );
    		wp_enqueue_script( 'livequery',                   WPSC_URL 			. '/wpsc-admin/js/jquery.livequery.js',   array( 'jquery' ), '1.0.3' );
    		wp_enqueue_script( 'jquery-rating',               WPSC_CORE_JS_URL 	. '/jquery.rating.js',                 array( 'jquery' ), $version_identifier );
    		wp_enqueue_script( 'wp-e-commerce-legacy',        WPSC_CORE_JS_URL 	. '/user.js',                          array( 'jquery' ), WPSC_VERSION . WPSC_MINOR_VERSION );
    		if ( get_option( 'show_thumbnails_thickbox' ) == 1 ){
    			$lightbox = get_option('wpsc_lightbox', 'thickbox');
    			if( $lightbox == 'thickbox' ) {
    				wp_enqueue_script( 'wpsc-thickbox',				WPSC_CORE_JS_URL . '/thickbox.js',                      array( 'jquery' ), 'Instinct_e-commerce' );
    				wp_enqueue_style( 'wpsc-thickbox',				WPSC_CORE_JS_URL . '/thickbox.css',						false, $version_identifier, 'all' );
    			} elseif( $lightbox == 'colorbox' ) {
    				wp_enqueue_script( 'colorbox-min',				WPSC_CORE_JS_URL . '/jquery.colorbox-min.js',			array( 'jquery' ), 'Instinct_e-commerce' );
    				wp_enqueue_script( 'wpsc_colorbox',				WPSC_CORE_JS_URL . '/wpsc_colorbox.js',					array( 'jquery', 'colorbox-min' ), 'Instinct_e-commerce' );
    				wp_enqueue_style( 'wpsc-colorbox-css',				WPSC_CORE_JS_URL . '/wpsc_colorbox.css',			false, $version_identifier, 'all' );
    			}
    		}
    		wp_enqueue_style( 'wpsc-theme-css',               wpsc_get_template_file_url( 'wpsc-' . get_option( 'wpsc_selected_theme' ) . '.css' ), false, $version_identifier, 'all' );
    		wp_enqueue_style( 'wpsc-theme-css-compatibility', WPSC_CORE_THEME_URL . 'compatibility.css',                                    false, $version_identifier, 'all' );
    		wp_enqueue_style( 'wpsc-product-rater',           WPSC_CORE_JS_URL 	. '/product_rater.css',                                       false, $version_identifier, 'all' );
    		wp_enqueue_style( 'wp-e-commerce-dynamic',        $siteurl 			. "/index.php?wpsc_user_dynamic_css=true&category=$category_id", false, $version_identifier, 'all' );
    
    	endif;
    ?>

    and then – the javascript error dissappears because we’re only calling the .livequery scripts for e-commerce on the pages that require it!
    So the calendar form plugin starts working, and there is no more jQuery conflicts.

    woohoo that took me a day to solve!

    Thread Starter onna

    (@onna)

    and this resource, but I’m not sure which files to edit, where to place the .noconflict() and what files to create to get this working

    http://jquery-howto.blogspot.com/2009/07/jquerynoconflict-resolving-conflicts.html

    Thread Starter onna

    (@onna)

    I don’t know if this might be the right place to research but I’ve found this resource:

    http://mccormicky.com/1385/using-wp-3-1-jquery-cforms-wp-e-commerce-frustrated-by-javascript-errors/

    The only javascript error I’m getting seems to come from

    Error: jQuery("form.product_form").livequery is not a function
    Source file: http://djhymn.com/wp-content/plugins/wp-e-commerce/wpsc-core/js/wp-e-commerce.js?ver=3.8.4.391083
    Line: 273

    I think it’s something to do with your calendar plugin calling a different version of jquery but I am unable to fix this, I have tried:

    <script type="text/javascript"
       src="http://djhymn.com/wp-content/themes/activetheme/js/jquery-1.4.4.min.js"></script>

    in the header file, the functions file, and am really lost where to go from here.

    same problem here with another themeforest theme:
    http://djhymn.com/services/

    Yet I can’t find any error conflicts. When You do, how are you supposed to fix them?

    Ah that’s a really cool workaround! I’ve just started to work with easy file shop, and I love this plugin. Felix I’m currently working on a hack that might enable affiliate commission through Paypal ‘daisychaining’ API. I’ll keep you informed if it’s successful 🙂

    onna

    (@onna)

    THANKS AGAIN! this little comment helped me with other previous plugin versions that I upgraded from and lost usability with!

    onna

    (@onna)

    THANK YOU! I’ll go through this now and make the changes.

    Thank you so much for a speedy reply.

    onna

    (@onna)

    How do I revert to an earlier version of WP book ?

    onna

    (@onna)

    I do hope this is solved soon 🙁 I have the same error – I think? I didn’t notice it before because it works when viewed as a tab item added to a page, but in canvas view it doesn’t work at all now :'(

    Where do I start to look?

    http://apps.facebook.com/julianareed
    “An error occurred. Please try again later.”

    ok – can someone tell me how to adjust the width of the marginin which the entry date sits. It’s dead space, and I either want to shrink it, or increase it to stick adsense in there

    YEY!! I was getting worried that I might have to go into the PHP code to remove it. THANK GOODNESS! thanks for the biggest tip on getting around this bug!

Viewing 13 replies - 1 through 13 (of 13 total)