• Resolved irik

    (@irik)


    Hello!

    I have enabled the function that allows customers to log in to an existing account during checkout, which creates a nice accordion-like box on my checkout page with the link: Click here to log in (which opens the accordion).

    But in my billing form on the checkout page I would also like to create a link to that same box. But what is the url for that? When hovering over the Click here to log in-link, there is no url (only the url for the page and a # at the end).

    I prefer to link to my customers to that box on the checkout page, instead of sending them away to a login page.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Rafy a11n

    (@nawaz0705)

    Hi @irik

    Thank you for reaching out!

    I am not sure how you have configured the login functionality on your website, so it would be helpful if you could share a link to your website so that I could check directly.

    Also, in order for us to get a better understanding of your site setup, could you please share a copy of your website’s System Status Report?

    You can get it by navigating to the WooCommerce / Status section of your site. Once there, click on the Get system report button and then copy it by clicking on the Copy for support button. Then paste it here in a comment.

    Thank you!

    Thread Starter irik

    (@irik)

    Thanks! The website is: https://www.tryggportalen.no
    I’m not so happy with sharing the status report in an open forum, but maybe the website is enough for you to check? ??

    Hi @irik

    Thanks for sharing the site URL but when I tried to visit the website it said “Your access to this site has been limited by the site owner. Your access to this service has been limited. (HTTP response code 503)”

    I’m not so happy with sharing the status report in an open forum

    When you share your System Status you may remove any sensitive/identifiable information for privacy reasons, if you’d prefer.

    Also, you could use a service such as Pastebin and set the deadline to a week or two weeks, giving us enough time to look at it and help you with the issue. You can also share a Google docs link here, the content of which you’ll be able to erase at your discretion.

    Thread Starter irik

    (@irik)

    Oh, sorry for that – the security manager has obviously blocked some area-specific IP addresses. You can find a screenshot of the box in question here: https://ibb.co/sHntw5z
    When I click the “Click here to login”-link, this happens: https://ibb.co/7WJBq0m

    So how can I open the box/accordion with another, custom link that I will add at the bottom of that page? (E.g. a link saying: “You may log in at the top of the page”, and then the user is directed to the box/accordion and opens it.) What will be the URL for that link?

    Since I’m not sure about what information is considered sensitive in the Status report, I’m still a little hesitant about sharing it in an open forum. I can send it to you directly if you need it.

    Plugin Support Kaushik S. a11n

    (@kaushiksomaiya)

    Hi there!

    Thanks for sharing the screenshots.

    The login form show and hide is toggled through jQuery so you’ll not be able to do that with a simple link.

    You can try the jQuery based solution below but I am not sure if it would work well on your theme.

    First, you could add the jQuery below to your checkout page using an HTML block.

    
    <script>
    jQuery(document).ready(function(){
        jQuery(".customshowlogin").click(function() {
            jQuery([document.documentElement, document.body]).animate({
                scrollTop: jQuery(".woocommerce-form-login-toggle").offset().top
            }, 1000, function(){
                jQuery( 'form.login, form.woocommerce-form--login' ).slideDown();
            });
        });
    });
    </script>
    

    Next, you can add the link below wherever you want:

    <a href="#" class="customshowlogin">Click here to login</a>

    If this doesn’t work, it may need advanced coding.

    I hope this helps! ??

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, the above info was helpful.

    If you have any other questions, please feel free to open a new topic.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Link to Log in’ is closed to new replies.