Enforce registration (Create new account) on WooCommerce guest checkout
-
Hi,
I read https://docs.themeum.com/tutor-lms/tutorials/guest-purchase/ and also https://docs.themeum.com/tutor-lms/ecommerce/woocommerce/
The problem like many others have pointed out in this forum before is that a guest needs to manually check the “Create a customer” account checkbox on checkout. This is often forgotten (by default it is also off).
It would be better if when a shopping cart includes a course, then the creation of a new account would be enforced on checkout (unless the user is already logged in).
The WooCommerce Subscriptions (and also WooCommerce Memberships) plugins do it this way. They use the
woocommerce_checkout_registration_required
filter (which checks if cart contains a subscription, then yes) and then also sets$_POST['createaccount'] = 1;
using thewoocommerce_before_checkout_process
action.Can we have something similar for Tutor LMS?
- The topic ‘Enforce registration (Create new account) on WooCommerce guest checkout’ is closed to new replies.