Viewing 4 replies - 1 through 4 (of 4 total)
  • Try the following.

    <?php
    
    $register_url = 'http://mywoostore.com/register';
    
    woocommerce_login_form(
        array('message'  => __( 'If you have shopped with us before, please enter your details in the boxes below. If you are a new customer please <a href="'.esc_url($register_url ).'">register here</a>.', 'woocommerce' ),
            'redirect' => wc_get_page_permalink( 'checkout' ),
            'hidden'   => true
        )
    );
    
    ?>

    Let me know how it goes.

    Thread Starter Adri Oosterwijk

    (@adri-oosterwijk)

    Hi Kharis,

    Thank you for your reply. It works great.
    Two questions are coming up:

    1) Because I’m developing on a local machine I have set the url in the template fixed: http://stockphotosite.dev/user-registration. That means that when the online site is updated I have to change it. Is there a way to set it in a relative manner?

    2) This concernes te link in conjunction with WPML. I am creating the site in English but I have also a translation to dutch. The permalink structure will then be: http://stockphotosite.dev/nl/user-registration. I can’t test it because the user registration form is not ready yet so there is no translation. Do you perhaps know if your suggested code change will work with the dutch translation or do I simply have to test it.

    Perhaps we can achieve this when we are able to incorporate a bit of code to obtain the correct url at the beginning (see question 1) of the template file. However I have no idea haw to accomplish that.

    Hope to hear from you soon.

    Thread Starter Adri Oosterwijk

    (@adri-oosterwijk)

    @kharis,

    Found it for now.

    I changed the code

    $register_url = 'http://mywoostore.com/register';

    Into

    $register_url = get_permalink('4491');

    Thanks!

    Hi guys

    i am very new to wordpress and woocommerce. im getting the same message about …proceed to the “Shipping and Billing” section

    how do i make it say proceed to create new user or create new account in the my account section

    thank you

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

The topic ‘Create link in login template’ is closed to new replies.