Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1096660

    qualalbatroz
    Participant

    Hi there,

    After I upgraded the woocommerce to 2.6.3, the product tabs on the product page of our online store don’t open automatically once the page loads. You have to click on them to open, which is not the intending behaviour. Could you please help?

    Our site is at qualalbatroz.pt and you can check a product page here http://qualalbatroz.pt/loja/o-livro-da-pira/ (though you can check any other product)

    Woocomerce version: 2.6.3
    Wordpress version 4.5.3
    x.version 4.6.0
    Cornerstone 1.3.0

    Thanks!

    José

    #1096672

    Christian
    Moderator

    Hey José,

    Please remove the script in Appearance > Customize > Custom > Javascript, clear all caches including browser history and try again.

    Thanks.

    #1097813

    qualalbatroz
    Participant

    Hello there,

    I removed the code, cleared all caches, including browser history, but the problem remains… Looking forward to some more help.

    Thanks!

    José

    #1098175

    Rad
    Moderator

    Hi there,

    It’s a bug on tabs nav since it’s now utilizing the indexes instead of ID. Please add this code to Admin > Appearance > Customizer > Custom > Javascript

    jQuery ( function($) {
    
    $('.woocommerce-tabs > .x-nav > .x-nav-tabs-item > a').on('click', function() {
    
    var index = $(this).data( 'cs-tab-toggle' );
    
    setTimeout( function() {
    $( '.woocommerce-tabs > .x-tab-content > div[data-cs-tab-index="' + index + '"] .x-nav > .x-nav-tabs-item:first-child a' ).trigger('click');
    }, 200 );
    
    } );
    
    $( document ).ready ( function() {
    
    $('.woocommerce-tabs > .x-nav > .x-nav-tabs-item:first-child > a').trigger('click');
    
    } );
    
    } );

    Hope this helps.

    #1098326

    qualalbatroz
    Participant

    That worked perfectly! Thanks so much!

    José

    #1098351

    Rue Nel
    Moderator

    You’re welcome!
    We’re glad we were able to help you out.