Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3813 Prikazi


How to restrict website shop product for logged in users ?

For Example,

A list of product in website shop page ,based on the product Admin want to give access to the  product for logged in users and that product should only visible to that Users. 

Avatar
Opusti
Best Answer

Hi Rupesh,

Shop page is the page in which all products are shown for the visitors.If you check the controller method for the corresponding route the products objects are passed to the template as values for rendering.There are conditions applied for filtering the products and product categories as well.For managing the products shown for users you will have to override the same controller method and pass only those products based on the logged in user.This way you can manage the products shown based on the logged in user.

Regards

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
dec. 23
2225
0
jun. 16
5423
1
jun. 24
2309
0
okt. 22
2027
1
jan. 22
2961