papagino Posted June 26, 2023 Share Posted June 26, 2023 Hello people I noticed that "My Account Block" and "My Account Block Footer" is always showing up on the website even if a customer is not logged in the store. (In Prestashop, it would only appear once you are logged in the website) Is there a way to have those two modules only show up on the website when a customer is logged in? (This should be considered as a bug and need to be looked at...) I am on Thirtybees 1.5.0 Bleeding Edge and on PHP 8.1 Thanks! Dan Link to comment Share on other sites More sharing options...
0 MichaelEZ Posted July 3, 2023 Share Posted July 3, 2023 Hi! You can just open those tpl files [for example blockmyaccount.tpl (modules/blockmyaccount)] and update code with this {if $is_logged} CODE {else} CODE {/if} And if You want to use group {if (int)Group::getCurrent()->id == 1} CODE {/if} Link to comment Share on other sites More sharing options...
0 papagino Posted July 3, 2023 Author Share Posted July 3, 2023 7 minutes ago, MichaelEZ said: Hi! You can just open those tpl files [for example blockmyaccount.tpl (modules/blockmyaccount)] and update code with this {if $is_logged} CODE {else} CODE {/if} And if You want to use group {if (int)Group::getCurrent()->id == 1} CODE {/if} Hi, thank you for your input. However, I think that Thirtybees developers should make these changes, as changing core files will cause problems every time you do a "Core Updater" in the Backoffice of your store. Cheers Link to comment Share on other sites More sharing options...
0 datakick Posted July 4, 2023 Share Posted July 4, 2023 You can enable / disable modules per customer groups. You can have this disabled for visitors / guests, and enabled for customer or any other group you have. 1 Link to comment Share on other sites More sharing options...
0 papagino Posted July 4, 2023 Author Share Posted July 4, 2023 35 minutes ago, datakick said: You can enable / disable modules per customer groups. You can have this disabled for visitors / guests, and enabled for customer or any other group you have. Hmmm! never thought of doing this as this must have been done automatically with Prestashop... Simple when you know where to look. Cheers Link to comment Share on other sites More sharing options...
Question
papagino
Hello people
I noticed that "My Account Block" and "My Account Block Footer" is always showing up on the website even if a customer is not logged in the store.
(In Prestashop, it would only appear once you are logged in the website)
Is there a way to have those two modules only show up on the website when a customer is logged in?
(This should be considered as a bug and need to be looked at...)
I am on Thirtybees 1.5.0 Bleeding Edge and on PHP 8.1
Thanks!
Dan
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now