Woo commerce user login
-
This is my first attempt of a WordPress/WooCommerce plugin.
The functionality I like to try is to force all visitors to login before selecting any product to buy: visitors can browse product pages, but must login before putting anything to the shopping cart.
What I plan to do is a button called “login to your account”, placed on each product page:
1. When a visitor clicks the button on a page, he is brought to a standard woocommerce account login page.
2. After logging in, visitors will be brought back to the same (product) page on which they clicked the button.To implement this, I’ll redirect visitors by using woocommerce shortcode [woocommerce_my_account] (should I do it differently?), but I have had a hard time to see how to return to the original page.
May anyone shed some light on this?
Thanks
- The topic ‘Woo commerce user login’ is closed to new replies.