Logged in logged out feature is not working with woodmart theme
-
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.
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?
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
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
The topic ‘Logged in logged out feature is not working with woodmart theme’ is closed to new replies.