Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Separate registration page in WooCommerce website

Can anybody help me build a separate registration page in WooCommerce instead of displaying it in the my-account page?

In the my-account page I want to display a link which will take the buyer to the registration page.

like image 216
Lipsa Avatar asked Jan 29 '26 23:01

Lipsa


1 Answers

edit your form-login.php file and seperate the login form and registration form in two different sections say section A and B.

now check for a GET parameter in the page which will define which section to show. By default login will be shown, if parameter is found and is "register", show registration section

if( isset( $_GET['action']) && $_GET['action'] == "register"){
    // Section for registration
}else {
    // Section for Login form
}

you can provide a link for registration as

<a href="' .get_permalink(woocommerce_get_page_id('myaccount')). '?action=register"> register </a>
like image 190
Pushpak Patel Avatar answered Jan 31 '26 12:01

Pushpak Patel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!