• Resolved synflex

    (@synflex)


    Hi, I still have a few questions for you:

    1. I customized the popup header with the logo of my site and a short text through a shortcode, which I inserted in the xoo-el-header.php file. The custom header is displayed correctly in both the login and registration sections, but it also appears in the password recovery section: is it possible in the latter case to make sure that you don’t see it?

    2. In the header of my site I created a drop-down menu that contains the endpoints of woocommerce (my-account, orders, etc.): it is possible to make sure that all menu item calls up the login popup (for users not logged in) or send the logged in user to the clicked endpoint?

    3. I created a registration page for the site where I inserted the inline shortcode [xoo_el_inline_form active = “reg”]. However, if I visit the page as a logged in user, the form disappears. Is it possible to make sure that only on this page is the form always visible even for logged in users?

    thank you for your support

Viewing 1 replies (of 1 total)
  • Plugin Author xootix

    (@xootix)

    Hi @synflex

    1) The header is same for all the three forms. You need to edit the template xoo-el-form.php & shift header template to Login, signup, password section, then add your custom code to Login & signup section.
    Below is the screenshot of template changes.
    Screenshot

    2) You can create duplicate menu items, each for logged in & guest users.
    On your menu page, under “Login/Signup popup”.
    a) select “Login” item for guest users, this will open popup, rename it to “Orders”
    b) select “My account” item for logged in users & change its url to order page & rename to “Orders”
    The above steps will trigger the popup though, however they won’t redirect to orders page after signing in.
    Its a good feature, I will try to implement it in next update.

    3) The shortcode is supposed to hide form for logged in users, you can create your own shortcode with the below snippet & use it

    function my_xoo_el_inline_form_shortcode($user_atts){
    
    	$atts = shortcode_atts( array(
    		'active'	=> 'login',
    	), $user_atts, 'my_xoo_el_inline_form');
    
    	$args = array(
    		'form_class' => 'xoo-el-form-inline',
    		'form_active' => $atts['active']
    	); 
    	
    	xoo_get_template( 'xoo-el-form.php', XOO_EL_PATH.'/templates/', $args );
    
    }
    add_shortcode( 'my_xoo_el_inline_form', 'my_xoo_el_inline_form_shortcode' );

    The shortcode is now
    [my_xoo_el_inline_form active = “register”]

    • This reply was modified 4 years, 11 months ago by xootix.
    • This reply was modified 4 years, 11 months ago by xootix.
Viewing 1 replies (of 1 total)
  • The topic ‘Plugin customization’ is closed to new replies.