跳至內容
選單
此問題已被標幟
1 回覆
4178 瀏覽次數


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. 

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
12月 23
2789
0
6月 16
5643
1
6月 24
2687
0
10月 22
2248
1
1月 22
3226