Home › Forums › WoodMart support forum › Login popup
Login popup
- This topic has 10 replies, 2 voices, and was last updated 1 year, 8 months ago by
Elise Noromit.
-
AuthorPosts
-
May 7, 2018 at 11:46 am #56434
VIVIParticipantHi
What is the code to call the login popup built in the theme
I want to put it on page, so more easy make customer login.Attachments:
You must be logged in to view attached files.May 7, 2018 at 1:53 pm #56455
Elise NoromitMemberHello,
There is no option to put registration form into popup. Registration form is WooCommerce template which has its own url but do not have a shortcode.
At the same time when a user is not authorized, you can configure registration form either in the drop-down or in the sidebar.
You can see the drop-down here: https://woodmart.xtemos.com/
And sidebar looks like here: http://prntscr.com/jetqvm
Best Regards
May 7, 2018 at 5:11 pm #56476
VIVIParticipantHi
Yes, the sidebar that your provide is I want to be, what is the code or any can put on the page to call the sidebar?May 7, 2018 at 6:13 pm #56484
Elise NoromitMemberHello,
You need to set “Sidebar” in My account element as shown: http://prntscr.com/jexi13
Navigate to Woodmart > Header Builder > Edit
Best Regards
May 7, 2018 at 6:15 pm #56485
VIVIParticipantHi
I need the button on the page content? it this possible?May 7, 2018 at 7:52 pm #56494
Elise NoromitMemberHello,
Yes, you can add a button element and add this class ‘login-side-opener’ to open the login form http://prntscr.com/jexfab
Best Regards
May 10, 2018 at 8:42 am #56886
VIVIParticipantHi
how about the class of dropdown?May 10, 2018 at 12:23 pm #56926
Elise NoromitMemberHello,
If you add a button class it will work only on a sidebar. If you mean a drop-down in a menu, you need to configure it in Head builder http://prntscr.com/jg3i3f
Best Regards
August 27, 2023 at 6:40 pm #491566
maria_marketing.sptParticipantHi, is there any way I can trigger the log-in sidebar when a user clicks on a page if he’s not logged in?
For example, I need a user who clicks a button or a nav menu to open the log-in sidebar only if he’s not logged in. If he/she is logged in then when he clicks the button it just goes to the desired page.
I tried doing it by using this custom_redirects:
function custom_redirects() {
$redirecturl = site_url().’/My-account’;
if ( is_page( ‘vinde-sneakers’ ) && !is_user_logged_in() ) {
wp_redirect( $redirecturl );
die;
}
}
add_action( ‘template_redirect’, ‘custom_redirects’ );This works but the problem is that I am not using the Woocommerce registration fields, I have removed them and I am now only using the WCFM registration form for registering new users, so my Account page doesn’t have any registration form on it…. they are separate. That’s why I need to trigger the log-in pop-up/sidebar(because it has both log-in and create an account button that redirects to the registration form page) for this to make sense for my users. Could you please help?
August 29, 2023 at 1:11 am #491798
Elise NoromitMemberHello,
This form is provided by another third-party plugin and it is not shown as it likely has not been configured.
We recommend you use the default Wooommerce Registration form.
As for the option to open the log-in custom form of login form in the sidebar, you can do that with this JS code:
(function($) { $('.login-side-opener').trigger('click'); })(jQuery);
Then you need to call this JS code to open the sidebar.
If you have any questions please feel free to contact us.
Best Regards
August 29, 2023 at 1:16 am #491799
Elise NoromitMemberHello,
This form is provided by another third-party plugin and it is not shown as it likely has not been configured.
We recommend you use the default Wooommerce Registration form.
As for the option to open the log-in custom form of login form in the sidebar, you can do that with this JS code:
(function($) { $('.login-side-opener').trigger('click'); })(jQuery);
Then you need to call this JS code to open the sidebar.
If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register