Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #20304

    Hey, I’m trying to link directly to a non-default woocommerce tab from an external page (Abundance theme). For instance, if I want to link someone directly to the product attributes tab, I should be able to give them the link to the product with #tab-attributes appended to the end. For instance: http://www.finishlynx.com/product/cameras/etherlynx-2000-photo-finish-camera/#tab-attributes

    This does not work, however. Is there some js or jquery snippit I can use to permalink to specific tabs?

    #107122

    Hi!

    You can use the trigger function like:

    jQuery("#tab-attributes").trigger('click');

    insert it after the document.ready check and jquery should switch the tab automatically.

    Regards,

    Peter

    #107123

    Thanks a million, Peter. You can mark this as resolved. But could you please clarify where I can locate the document .ready for Woocommerce inside the theme. Is it in the Abundance header/footer or somewhere inside Woocommerce? – Matt

    #107124

    Hi lynxmarketing,

    In the theme files, go to js>avia.js and add it just after:

    jQuery.noConflict();
    jQuery(document).ready(function(){

    Regards,

    Devin

    #107125

    Thanks for the quick reply, Devin. Unfortunately, the trigger doesn’t seem to be working. Is there some sort of syntax edit or function that needs to be added? I should be able to type the product url in the browser: http://finishlynx.com/product/cameras/etherlynx-2000-photo-finish-camera/#tab-attributes and have the page open directly on the attributes tab, correct?

    #107126

    Hey!

    Try following code:

    jQuery("#tab-attributes").trigger('click');
    jQuery(".description_tab").removeClass('active');
    jQuery(".attributes_tab").addClass('active');

    Best regards,

    Peter

    #107127

    Still no luck. But thanks a million for the effort guys!

    #107128

    Hi!

    I’m out of ideas now. I’d try to contact the woothemes support staff – maybe they can provide some useful tips.

    Best regards,

    Peter

    #107129

    Hey lynxmarketing if u find an answer can u plz post over here i am trying to look for same thing and no help yet

    #107130

    Hey!

    I’ll close the topic now, lynxmarketing if you find a solution you can still post it here.

    Best regards,

    Peter

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Link directly to a Woocommerce tab’ is closed to new replies.