The WooCommerce My Account register form (when enabled) redirects to… itself once a WooCommerce customer registers. So, what if you want to redirect newly registered users to another page?
Also, when you have a custom Registration page, you may need to redirect users to the… My Account page!
Either way, here’s how to change the default redirect behavior. Enjoy!
Continue reading WooCommerce: Custom Registration Redirect @ My Account
The ecommerce sector is seeing incredible growth, year after year, with no foreseeable end in sight. The same is true for B2B ecommerce, yet there aren’t many good platform choices available for small-to-medium businesses that want to sell wholesale. There are several SaaS solutions on the market, but these are costly, closed-source, and mostly oriented towards larger businesses.
If you are a business owner or developer, WooCommerce is a solution that’s free, versatile and powerful.
Continue reading WooCommerce B2B: How to Set Up a Wholesale Store
You can add first and last name to the WooCommerce registration form (easy, no?). Or maybe a custom radio field. And why not, a file upload input – which is able to load an image from the user’s browser, assign it to the form, and add the image to “Media” in your WordPress install.
And today we’ll see exactly that. Unfortunately the “woocommerce_form_field” function does not allow (yet, maybe) to generate file input fields, so we’ll just use basic HTML. Enjoy!
Continue reading WooCommerce: File Upload @ My Account Registration Form
If you’ve enabled customer registration on the My Account page, you will know that a new user is automatically logged in as soon as they successfully register.
This is great – however in certain cases it could be “dangerous” (for example, if you need to manually approve each user).
As I was searching through the WooCommerce plugin code, I found a great action filter that can immediately stop this from happening – I love one-liners! So, here’s the quick fix.
Continue reading WooCommerce: Deny Automatic Login Upon Registration @ My Account
There are times when you need to send logged out customers to a Login page and unregistered customers to a distinct Register page.
As you know, the WooCommerce My Account page, which contains the [woocommerce_my_account] shortcode, has both Login and Registration forms when registration is enabled on the My Account settings.
This is not always a good idea, mostly when you use landing pages or sales pages with a specific goal e.g. user registration.
Clearly, when this happens, you don’t want to have a login form there as well. My solution provides two new shortcodes, one for the login form and one for the register form.
Please be aware that the Registration Page shortcode content is copied from WooCommerce template files – if WooCommerce releases an update or makes a change to these files, you may need to update the snippet as well.
Give it a go, feedback is much appreciated 🙂
Continue reading WooCommerce: Separate Login and Registration Pages
If you don’t want to assign the WooCommerce user role “customer” to new… customers, there is simple PHP that can be added to your functions.php to achieve this. Enjoy!
Continue reading WooCommerce: Change User Role for New Customers