Skip to main content
Tweeted twitter.com/#!/StackMagento/status/477985941630771200
deleted 157 characters in body; edited tags
Source Link
Tim Bezhashvyly
  • 11.6k
  • 6
  • 43
  • 73

I have multi-website, multi-store magento appinstallation. eachEach store have different root category. I

I have created user [sub admin]admin users for each store and restricted access to their related store. enter image description here

In each subadminadmin panel product grid iI have to display his product only. So

So I want to filter each product before display in grid, To do this i need the rootcategoryroot category id of current logged in subadmin store and each product rootcategory.admin. But

But whenever iI try to get current subadminadmin store root category, Valuethe value is zero. How can i solve this any suggestion, If my idea is good... Then

So the questions are:

  1. How can I get currently logged in subadminadmin store's rootcategoryroot category?
  2. How can I get each product rootcategoryroot category?

Thanks in Advance..

I have multi-website, multi-store magento app. each store have different root category. I have created user [sub admin] for each store and restricted access to their related store. enter image description here

In each subadmin panel product grid i have to display his product only. So I want to filter each product before display in grid, To do this i need the rootcategory id of current logged in subadmin store and each product rootcategory.. But whenever i try to get current subadmin store root category, Value is zero. How can i solve this any suggestion, If my idea is good... Then

  1. How can I get currently logged in subadmin store's rootcategory?
  2. How can I get each product rootcategory?

Thanks in Advance..

I have multi-website, multi-store magento installation. Each store have different root category.

I have created admin users for each store and restricted access to their related store.

In each admin panel product grid I have to display his product only.

So I want to filter each product before display in grid, To do this i need the root category id of current logged in admin.

But whenever I try to get current admin store root category, the value is zero.

So the questions are:

  1. How can I get currently logged in admin store's root category?
  2. How can I get each product root category?

Thanks in Advance..

Source Link
Charlie
  • 3.1k
  • 7
  • 38
  • 63

How to get root category id in admin product grid

I have multi-website, multi-store magento app. each store have different root category. I have created user [sub admin] for each store and restricted access to their related store. enter image description here

In each subadmin panel product grid i have to display his product only. So I want to filter each product before display in grid, To do this i need the rootcategory id of current logged in subadmin store and each product rootcategory.. But whenever i try to get current subadmin store root category, Value is zero. How can i solve this any suggestion, If my idea is good... Then

  1. How can I get currently logged in subadmin store's rootcategory?
  2. How can I get each product rootcategory?

Thanks in Advance..