简体   繁体   中英

keep only social login custom option in Woocommerce

I install Plugin Woocommerce Social login from code canyon. And after we select product to add to cart, the customer have to choice which is manually login or using Social Login button. I would like customer to just have one choice which is using social login only instead of manually login.

You can see here, the two option of login enabled by Woocommerce Social login plugin:

登录的两种选择

How to remove Woocommerce default login form keeping the social login button functionality?

To make customizations, you can override Woocommerce templates via your theme… First reed the following documentation, that explain how you can do that:

Template structure & Overriding templates via a theme

The related template to override is: myaccount/form-login.php

Once you have copied form-login.php template from woocommerce plugin to your active themes's "woocommerce" folder, in a "myaccount" subfolder:

  1. open edit it
  2. remove the code from line 38 to line 58 (all the code inside the <form> tags).
  3. save

That should only keep your "Two options social login form".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM