I have refactored Aaron @ Geocachestore's excellent "Group Functionality in the CMS Info Block" contribution to be a more general solution for hiding CMS pages from specific groups. It is available here for PrestaShop 1.2.4.
http://www.thatsoftw...strictions.html
That Software Guy
http://www.thatsoftw...strictions.html
That Software Guy
That Software Guy - http://www.thatsoftwareguy.com
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html
Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html
Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/
It's a mess here ! Some anomalies, but I think it's because of my former hack, AND WHAT IT SEEMS TO BE A BUG of prestashop ...
I noticed that if in blockinfo you select nothing (no cms) , then all cms are displayed !!!! you must select at least 1 cms.
In other hand, I would like in fact hide blocks in accordance of groups permissions. Not only contents ... but the block itself (because to see an empty block is not smart ! ).
How ?
I noticed that if in blockinfo you select nothing (no cms) , then all cms are displayed !!!! you must select at least 1 cms.
In other hand, I would like in fact hide blocks in accordance of groups permissions. Not only contents ... but the block itself (because to see an empty block is not smart ! ).
How ?
signé: LionHell
Did you restore modules/blockinfos/blockinfos.php from the default copy? The old modified copy is no good anymore.
That Software Guy - http://www.thatsoftwareguy.com
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html
Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html
Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/
That was my mistake, you're right, I made the backup it's ok for that, but I've edited my 1st message in that post, read it again ....
signé: LionHell
I have a problem .... surprising ?
In the BO:
If I create a CMS with NO restriction -> This CMS is displayed in modules/blockinfos settings.
If I create (or modify) a CMS with some restriction -> The CMS IS NOT displayed in modules/blockinfos settings
So impossible to set up the block !
In the BO:
If I create a CMS with NO restriction -> This CMS is displayed in modules/blockinfos settings.
If I create (or modify) a CMS with some restriction -> The CMS IS NOT displayed in modules/blockinfos settings
So impossible to set up the block !
signé: LionHell
I say again, in fact I would prefer to know how to show/hide a block according the customer groups ?!
signé: LionHell
You found a bug. I just fixed it; please download the ZIP again.
That Software Guy - http://www.thatsoftwareguy.com
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html
Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html
Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/
Humm, now it's the contrary !
Block settings are ok, CMS settings OK as well, but the display of CMS is not working.
No restriction: display ok for all groups.
Restriction: CMS that should appear for authorized group do not display.
Block settings are ok, CMS settings OK as well, but the display of CMS is not working.
No restriction: display ok for all groups.
Restriction: CMS that should appear for authorized group do not display.
signé: LionHell
I can't reproduce this result. Are you sure you've selected the CMS page in the block where you want it to display in the admin?
That Software Guy - http://www.thatsoftwareguy.com
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html
Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html
Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/
No, I checked again configuration, no doubt.
The only thing is that I didn't update the mysql table, but it seems you made no change on that table.
My last test:
I login in front office as member belonging to an authorized group.
Then in BO I remove all restrictions to a cms.
This cms is visible in FO (normal !)
Then I set restriction to the cms so that my group can see the cms ...
In FO the cms becomes invisible !
The only thing is that I didn't update the mysql table, but it seems you made no change on that table.
My last test:
I login in front office as member belonging to an authorized group.
Then in BO I remove all restrictions to a cms.
This cms is visible in FO (normal !)
Then I set restriction to the cms so that my group can see the cms ...
In FO the cms becomes invisible !
signé: LionHell
OK, I know the reason !!!!
When you edit a customer profile to setup the group of this customer, you can check the groups but not defaut ! you cannot uncheck default.
So all customers belong to default, and optionally to another group...
So ... in your system if you restrict default , you restrict all logged customers !!
When you edit a customer profile to setup the group of this customer, you can check the groups but not defaut ! you cannot uncheck default.
So all customers belong to default, and optionally to another group...
So ... in your system if you restrict default , you restrict all logged customers !!
signé: LionHell
The idea of restricting default is that it will only show up for not logged in customers. That's why I added "guest". This is just how PS works; guess I'll document it more thoroughly.
That Software Guy - http://www.thatsoftwareguy.com
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html
Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html
Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/
OK, I updated the documentation to include more details on the default group (which you rightly pointed out is confusing). Maybe in a future release I will remove it altogether; we'll see.
http://www.thatsoftw...strictions.html
Scott
http://www.thatsoftw...strictions.html
Scott
That Software Guy - http://www.thatsoftwareguy.com
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html
Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html
Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/
I'll try that evening ... for now I'm at work.
I'm not sure to understand ...
Let's suppose I've created a group "A".
1/ If I check "A" in restriction, and let "Default" unchecked, does it mean that A group won't see CMS and default (and other groups) will see ?
2/ How can I make a CMS visible only for "A" ??? Do I have to let default unchecked ? In that case do you confirm that customers belonging only to default won't see the cms ?
I'm not sure to understand ...
Let's suppose I've created a group "A".
1/ If I check "A" in restriction, and let "Default" unchecked, does it mean that A group won't see CMS and default (and other groups) will see ?
2/ How can I make a CMS visible only for "A" ??? Do I have to let default unchecked ? In that case do you confirm that customers belonging only to default won't see the cms ?
signé: LionHell
The "default" behavior makes this very confusing. I think I will revert to making the checkbox mean "show" rather than "hide."
That Software Guy - http://www.thatsoftwareguy.com
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html
Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html
Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/
From 1255860174:
The "default" behavior makes this very confusing. I think I will revert to making the checkbox mean "show" rather than "hide."
Just found this and thought it a good idea.
But it still has checkboxes for hiding.
If I create a new group eg 'retailers' to allow hiding a CMS entry for them, that won't work for new customers until I manually add them to that group, right?
/Mats
I'm on 1.4.3 if nothing else is stated. My blog about using PrestaShop http://mohsart-prest...p.blogspot.com/ (I'm a n00b myself, so much is very basic)
NOTE! When I say "change xxx" I usually mean what is described here
My shop: http://mohsart.se
NOTE! When I say "change xxx" I usually mean what is described here
My shop: http://mohsart.se
Hello mister swguy.
I just installed this contribution. It works perfectly and it's very impressive !
Is it possible to make it work with contributions themselves (instead of CMS, or in complement) Or is it too much complicated to handle ?
MrGniarf
I just installed this contribution. It works perfectly and it's very impressive !
Is it possible to make it work with contributions themselves (instead of CMS, or in complement) Or is it too much complicated to handle ?
MrGniarf
Hello
For other reasons, I need to create for every customer a “group” which include only one customer.
I also put customers in groups of several customers. So at he end, a customer belong to at least two groups : – One which include only this customer – One which includes this customer and some other.
This could seem fastidious but as everything is automatic, it’s very easy to manage. (Customers can only be created by my CRM, it’s a private shop)
Now I have to deal with an other issue :
Conditions and Terms, Informations and some other CMS stuff need to show only to a certain group ou a specific customer (in fact the custommer group including only this customer). That was what you begin to developped before to change the way to set CMS autorizations/restrictions.
I understand you decided to “hide” rather than “show” because it would be fastidious to check every CMS pages when you add a new group. So this was the good way. If not there would have been this issue :
In my case,
1)No CMS should be created manually in the backend
2) The CMS pages will automatically be created from CRM : – when I create a group of several customers (2 or 3 CMS pages created) – when I create a group of on client (1 CMS pages created which will contain personal informations and “private messages”)
So it would havec been easier for me to check (automatically ;-) ) the CMS page everytime a new group is created
Has "revert" been made ?
I can't find any contribution this way.
If not I'll try to make the changes my-self baut as I’m a very beginner with Prestashop and Smarty, I’m not sure what I should modify and how.
Is there anyone for help ?
Thanks a lot.
Tibo
For other reasons, I need to create for every customer a “group” which include only one customer.
I also put customers in groups of several customers. So at he end, a customer belong to at least two groups : – One which include only this customer – One which includes this customer and some other.
This could seem fastidious but as everything is automatic, it’s very easy to manage. (Customers can only be created by my CRM, it’s a private shop)
Now I have to deal with an other issue :
Conditions and Terms, Informations and some other CMS stuff need to show only to a certain group ou a specific customer (in fact the custommer group including only this customer). That was what you begin to developped before to change the way to set CMS autorizations/restrictions.
Quote
This code has been released; I created a new support thread with the title CONTRIBUTION. The new contribution is intended to “hide” rather than “show” on a per group basis, and works in all areas where CMS functionality is used in the cart (not just in the info block).
I understand you decided to “hide” rather than “show” because it would be fastidious to check every CMS pages when you add a new group. So this was the good way. If not there would have been this issue :
From 1257124465:
If I create a new group eg 'retailers' to allow hiding a CMS entry for them, that won't work for new customers until I manually add them to that group, right?
In my case,
1)No CMS should be created manually in the backend
2) The CMS pages will automatically be created from CRM : – when I create a group of several customers (2 or 3 CMS pages created) – when I create a group of on client (1 CMS pages created which will contain personal informations and “private messages”)
So it would havec been easier for me to check (automatically ;-) ) the CMS page everytime a new group is created
From 1255860174:
The "default" behavior makes this very confusing. I think I will revert to making the checkbox mean "show" rather than "hide."
Has "revert" been made ?
I can't find any contribution this way.
If not I'll try to make the changes my-self baut as I’m a very beginner with Prestashop and Smarty, I’m not sure what I should modify and how.
Is there anyone for help ?
Thanks a lot.
Tibo




Back to top









