Home Forums WoodMart support forum link in shortdescrition to additional_information

link in shortdescrition to additional_information

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #119070

    [email protected]
    Participant

    Hi,

    im trying to make a link in short description to open or navigate to the additional information tab. doing it with the code below opens only if the tab is active. Someone here have an idea how to fix this? i know its possible to show it in the short description but that’s not how i want my products displayed.

    a href=”#tab-additional_information”>> Alle productspecificaties

    thx!

    Attachments:
    You must be logged in to view attached files.
    #119089

    Artem Temos
    Keymaster

    Hi,

    Please, send us a link to the page where you placed that link so we can check how it works.

    Regards

    #119091

    [email protected]
    Participant

    Hi Artem,

    thx for your quick response. here is the link. i placed it for now in the short description. the idea is to inform customers there is more additional information for a product.

    https://education.royaljongbloed.com/shop/peuters-en-kleuters/bas/de-slab-van-bas/

    #119094

    Artem Temos
    Keymaster

    Try to add the following code snippet to the Custom JS area in Theme Settings and replace the link code with this <a href="#" class="openTabBtn">> Alle productspecificaties</a>

    jQuery('.openTabBtn').on('click', function( e ){
    	e.preventDefault();
    	jQuery('.additional_information_tab > a').click();
    });
    #119098

    [email protected]
    Participant

    Holy **** your awesome!. Simply the best support i have ever seen!

    thx!

    #119113

    [email protected]
    Participant

    almost perfection!. is it possible to make the sitegow to the bottom of the page with this code?

    #119136

    Artem Temos
    Keymaster

    Try to replace with the following code

    jQuery('.openTabBtn').on('click', function( e ){
    	e.preventDefault();
    	jQuery('.additional_information_tab > a').click();
        jQuery([document.documentElement, document.body]).animate({
            scrollTop: jQuery(".additional_information_tab").offset().top
        }, 500);
    });
    #119261

    [email protected]
    Participant

    thx! very good support

    #119262

    Artem Temos
    Keymaster

    You are welcome.

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

The topic ‘link in shortdescrition to additional_information’ is closed to new replies.