Home Forums WoodMart support forum Javascript callback to open account side menu

Javascript callback to open account side menu

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #97128

    Joe
    Participant

    Hello,

    I am customizing my checkout page and would like to add a link that opens the registration sidebar.

    I’ve looked through functions.js, but I can’t figure out if there’s a javascript function I can call to accomplish this. I’m looking at woodmartThemeModule.loginSidebar = function() {…}

    but I don’t know how to call that from my own javascript.

    Any help you can give?

    Thanks.

    #97152

    Artem Temos
    Keymaster

    Hi,

    Try to use the following JS code to open the sidebar

    jQuery('.login-side-opener').click();

    Regards

    #97273

    Joe
    Participant

    This is why I’m not a good developer! Such a simple solution and I was thinking way too hard.

    Thank you!

    #97298

    Artem Temos
    Keymaster

    You are welcome!

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

The topic ‘Javascript callback to open account side menu’ is closed to new replies.