R
R
Rokis2015-10-01 14:53:11
WordPress
Rokis, 2015-10-01 14:53:11

How to display woocommerce registration form in my theme?

I am making my theme for woocommerce with 0. What function can display the registration form and how to make it work in woocommerce? For example on wordpress like this:

<form name="registerform" action="http://mysite.ru/wp-login.php?action=register" method="post" novalidate="novalidate">
  <div><p>
    <label for="user_login">Имя пользователя<br>
    <input id="firstname" type="text" name="user_login" value="" size="15"></label>
  </p></div>
  <div><p>
    <label for="user_email">E-mail<br>
    <input id="email" type="email" name="user_email" value="" size="15"></label>
  </p></div>
    <p id="reg_passmail">Пароль будет отправлен вам на e-mail.</p>
  <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="Регистрация"></p>
</form>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WP Panda, 2015-10-01
@wppanda5

WooCommerce does not currently have a registration form as such, there is authorization, it is displayed by the shortcode [woocommerce_my_account] and is available for unlogged users, it is built according to this principle
wp-panda.com/build-a-custom-wordpress-user-flow-pa... , the registration itself is possible upon purchase, if the corresponding checkbox is checked, and it does not have a separate form.
But it is made according to the same principle as in the description articles, how to make such a form is described in the second part of the series , in Russian this part will be available on Saturday

A
Alexander, 2015-10-01
@alexsandr_s

You need to put templates in the woocommerce theme folder (create a woocommerce folder and put templates in it) https://github.com/woothemes/woocommerce/tree/mast...
then create a page /myaccount
and put the shortcode [woocommerce_my_account] into it - save page - open page /myaccount

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question