Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #16672

    Global B
    Participant

    Hi there,

    Can’t find anything about this in the forum.

    The add to cart button and the pricing updates when selecting a variable isn’t working at all in Woocommerce.

    http://essencekiteboards.com/product/essence-kiteboard/

    I’ ve priced both selections. I’ve tried al kinds of variations of settings. I cannot let it work well….

    At other theme’s it works fine! But we love to use this theme, so please help.

    #16674

    Global B
    Participant

    For the record; I red all the information at the Woocommerce service website, but it was nog helping me any further.

    #16680

    Geert S
    Participant

    Do you know X Theme cannot support the latest Woocommerce update yet? They’re working on an update for X. Till that time you should revert to an older Woocommerce version, or wait patiently, or live with the fact that not all will work as it should. 🙂

    #16711

    Rubin
    Keymaster

    Hey Geert,

    thanks for chiming in. We are working very hard to get the update out as soon as possible to support the latest version of WooCommerce, sorry for the inconvenience.

    #17360

    Global B
    Participant

    Now I’ve installed WooCommerce 2.0.20 and variable products still do not work.

    At a simple products, the ‘Add to cart’ button is shown: http://essencekiteboards.com/product/second-hand-essence-board/

    But at variable product it is not: http://essencekiteboards.com/product/essence-board/

    Can you please tell me how to fix it?

    #17474

    Kory
    Keymaster

    Global,

    X does support variable products, please see this example.

    In reviewing your site, you appear to have a few JavaScript errors being thrown in your console. This is likely from a conflicting third party plugin. Please try disabling any customizations or third party plugins you have added to see if this rectifies the issue.

    Thanks!

    #17716

    Global B
    Participant

    I’ve disabled all the plugins and the ‘add cart’ shop still is not shown.

    How can I figure out which JavaScript error are causing the problem?

    #17931

    Kory
    Keymaster

    Hey Global,

    One error in particular that is showing is the following:

    Uncaught TypeError: Object function (e,t){return new x.fn.init(e,t,r)} has no method 'cookie' 

    This appears to be coming from the following file:

    http://essencekiteboards.com/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js?ver=2.0.20

    I’m wondering if something in your WooCommerce plugin has not been installed correctly and could be causing this error. You could try overwriting or replacing the entire plugin or simply the file being referenced in the error. I’d be curious to know what that does for your site. Also, are you running any custom scripts or styles on your site via a child theme?

    Thanks.

    #18095

    Global B
    Participant

    Thank you Support.

    Looks like this is the problem in this theme too: http://docs.woothemes.com/document/jquery-cookie-fails-to-load/

    It looks like I have to rename the jquery cookie file. Can you provide me the part of code I need to add to the X theme?

    For the woothemes it is the following code:

    add_action( 'wp_enqueue_scripts', 'custom_frontend_scripts' );
    
    function custom_frontend_scripts() {
    
      global $post, $woocommerce;
    
      $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
      wp_deregister_script( 'jquery-cookie' ); 
      wp_register_script( 'jquery-cookie', $woocommerce->plugin_url() . '/assets/js/jquery-cookie/jquery_cookie' . $suffix . '.js', array( 'jquery' ), '1.3.1', true );
    
    }
    #18188

    Kory
    Keymaster

    Global,

    I should think that the snippet provided by WooThemes that you used above should work. However, it should be noted that even WooThemes states: “The BEST option is to get your host to update the rule set.” Have you tried to get your host to update your security settings first to avoid the need for all of this customization?

    #18190

    Global B
    Participant

    Yes I have contacted the host so I’ll wait for his answer. I’ll keep you up to date.

    #18212

    Rubin
    Keymaster

    Looking forward hearing from you!