Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

Vous parlez français ? par ici !
[CONTRIBUTION] CMS Page Group Restrictions
#1
Posted 17 October 2009 - 09:14 AM
http://www.thatsoftw...strictions.html
That Software Guy
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/
#2
Posted 17 October 2009 - 10:54 AM
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 ?
#3
Posted 17 October 2009 - 10:58 AM
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/
#4
Posted 17 October 2009 - 11:13 AM
#5
Posted 17 October 2009 - 11:33 AM
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 !
#6
Posted 17 October 2009 - 11:41 AM
#7
Posted 17 October 2009 - 01:56 PM
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/
#8
Posted 17 October 2009 - 03:49 PM
#9
Posted 17 October 2009 - 04:04 PM
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.
#10
Posted 17 October 2009 - 04:09 PM
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/
#11
Posted 17 October 2009 - 09:08 PM
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 !
#12
Posted 17 October 2009 - 09:43 PM
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 !!
#13
Posted 18 October 2009 - 12:29 AM
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/
#14
Posted 18 October 2009 - 10:15 AM
http://www.thatsoftw...strictions.html
Scott
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/
#15
Posted 18 October 2009 - 10:51 AM
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 ?
#16
Posted 18 October 2009 - 11:02 AM
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/
#17
Posted 18 October 2009 - 01:09 PM
#18
Posted 02 November 2009 - 02:14 AM
From 1255860174:
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
NOTE! When I say "change xxx" I usually mean what is described here
My shop: http://mohsart.se
#19
Posted 30 November 2009 - 09:26 AM
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
#20
Posted 23 February 2010 - 12:10 PM
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
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:
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:
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
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












