pradeepphule
Forum Replies Created
-
Forum: Plugins
In reply to: [Theme My Login] Redirect non-admin users to previous page after loginProblem Solve.
1. Paste following code in functions.php file
add_action( ‘template_redirect’, ‘redirect_users_not_logged_in’ );
/**
* Redirect non logged-in users to login page when they try to access any
* woocommerce template including the cart or checkout page.
*/function redirect_users_not_logged_in() {
if ( ! is_user_logged_in() && ( is_woocommerce() || is_cart() || is_checkout() ) ) {
auth_redirect();
exit;
}
}2. This code checks, whether user is logged in and it is woocommerce product/cart/checkout page.
3. If user is not logged in it will redirect to wp default login page. After successful login again it will redirect to previous product page. Where the user are.
4. If someone wants to disable wp default login use User Profile Made Easy plugin and disable wp default login.
Cheers..! 🙂
Forum: Plugins
In reply to: [Contact Form 7 Multi-Step Forms] Step 1 info not displaying in Step 2 emailHi,
If you wan’t to display Step 1 information into Step 2 then just do some minor changes:
1) Consider [checkbox-1] which is present on Step 1 Form and if you want to display it into Step 2 page then just put [multiform “checkbox-1”] in Step 2 Form
2) Also If you wan’t to display whole information in one mail tab then do some minor changes:
put before Submit button:
a)Step 1 Form: put [multistep “1-2-http://URL of Step 2 Form”]
b)Step 2 Form:[multistep “2-2”]Thanks Matt..
Hi,
How to add Date Picker in checkout page.
I have added Date Picker but it shows blank.Please Guide me.