Home Forums WoodMart support forum Logged in logged out feature is not working with woodmart theme

Logged in logged out feature is not working with woodmart theme

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #397209

    Bilal Hussain
    Participant

    Hi, we have purchased yet another licence woodmart theme and we are using it to redesign an existing woocommerce store. but we have came across an issue regarding showing different content for logged in and logged out users.

    currently in our wholesale store, we are using the7 theme and for each product description (short description)
    we are showing short description text for logged in users and for logged out users we are showing “Our Retailers” section (see attached images for more clear understanding)

    BUT i noticed whenever i use woodmart theme and deactivate The7 theme that feature goes away with it.
    i was thinking maybe it was a plugin but it was not instead it is related to existing theme,

    Now the problem is i really love your theme and i have designed stores and convinced many clients to purchase woodmart theme coz i believe you deserve it but now this is one of the main features of this wholesale store and i found out our theme is not showing appropriate section for both type of users instead it shows short code, so please suggest me the solution for this problem asap.

    Thank You
    Bilal Hussain

    Attachments:
    You must be logged in to view attached files.
    #397214

    Bilal Hussain
    Participant

    i noticed this php code in functions.php file of “The7” theme

    add_shortcode(‘loggedin’, ‘check_user’ );
    function check_user2 ($params, $content = null){
    if ( !is_user_logged_in() ){
    return do_shortcode($content);
    }
    else{
    return;
    }
    }
    add_shortcode(‘loggedout’, ‘check_user2’ );
    add_filter( ‘loop_shop_per_page’, ‘new_loop_shop_per_page’, 20 );

    should i add this to our theme as well?

    #397363

    Luke Nielsen
    Keymaster

    Hello,

    Sorry, I cannot tell you exactly because such functionality is related to WooCommerce and we cannot influent it. It requires customizations and this is beyond our limitations and support policy.

    In general, you can try to use your custom code and then check how it works.

    I sincerely appreciate your understanding in this matter. Please feel free to reach out to me if you have any further questions.

    Kind Regards

    #397407

    Bilal Hussain
    Participant

    Thank you, we fixed it

    #397422

    Luke Nielsen
    Keymaster

    Glad that you manage to sort this out.

    If there’s anything you need, please write me or another member of our help desk team.

    Wish you all the best.

    Kind Regards

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

The topic ‘Logged in logged out feature is not working with woodmart theme’ is closed to new replies.