v1.7-v8x Restrict access for customers group

ziomeks

Member
XNullUser
Joined
Sep 22, 2021
Messages
202
Reaction score
0
Points
16
NullCash
82
Hello, maybe somebody have for prestashop version 8.1.3 or 8.x some modules or script for restrict access for groups? or somebody know if some moudles from 1.7 version ps goes in 8.x?
 

unique

Well-known member
Diamond
Elite
XNullUser
Joined
Dec 12, 2020
Messages
1,874
Reaction score
410
Points
83
NullCash
429
no need any module

Post automatically merged:

no need any module



obrazek.png.bf55bc4bb0463a5c3f6aa19702349397.png
 

ziomeks

Member
XNullUser
Joined
Sep 22, 2021
Messages
202
Reaction score
0
Points
16
NullCash
82
thank you for your replny, but i tried to find something which including membership with cms page restrict for membership groups, but finally i make own tpl file where put conditional statement "if" and it's working for me fine
Code:
{if (int)Group::getCurrent()->id == 4}
    <p>working fine</p>
{else}
    <p>you need to be member</p>
{/if}
where 4 we write our group ID, maybe it help somebody
 
Top