I am using Woocommerce wordpress plugin in my site. When I am in the Cart page and click “proceed to checkout” I am now going to checkout page. I want to change this flow as below.
If the user is not logged in, he should be taken to a different url. If user is logged in he will go to checkout page as usual.
Any help is appreciated.
First you create a page where you want to redirect the guest user, for example register
then write this code in your functions.php
Hope this will help you…