February 15, 2013 at 4:44 pm #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-attributesappended 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?February 16, 2013 at 7:40 am #107122
You can use the trigger function like:
insert it after the document.ready check and jquery should switch the tab automatically.
PeterFebruary 19, 2013 at 3:02 pm #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? – MattFebruary 19, 2013 at 3:05 pm #107124
In the theme files, go to js>avia.js and add it just after:
DevinFebruary 19, 2013 at 3:48 pm #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?February 19, 2013 at 4:55 pm #107126
Try following code:
PeterFebruary 19, 2013 at 5:29 pm #107127February 19, 2013 at 6:18 pm #107128
I’m out of ideas now. I’d try to contact the woothemes support staff – maybe they can provide some useful tips.
PeterFebruary 19, 2013 at 11:40 pm #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 yetFebruary 20, 2013 at 5:54 am #107130
The topic ‘Link directly to a Woocommerce tab’ is closed to new replies.