Home Forums WoodMart support forum Login popup

Login popup

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #56434

    VIVI
    Participant

    Hi
    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.
    #56455

    Hello,

    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

    #56476

    VIVI
    Participant

    Hi
    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?

    #56484

    Hello,

    You need to set “Sidebar” in My account element as shown: http://prntscr.com/jexi13

    Navigate to Woodmart > Header Builder > Edit

    Best Regards

    #56485

    VIVI
    Participant

    Hi
    I need the button on the page content? it this possible?

    #56494

    Hello,

    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

    #56886

    VIVI
    Participant

    Hi
    how about the class of dropdown?

    #56926

    Hello,

    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

    #491566

    maria_marketing.spt
    Participant

    Hi, 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?

    #491798

    Hello,

    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

    #491799

    Hello,

    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

Viewing 11 posts - 1 through 11 (of 11 total)