Hi,
I'm working on a solution for a company that has a closed shop. This company is selling to certified reselling centers so the shop has to be closed. This is easy with Drupal, but this company is also using multiple price systems. The service is based on regions with multible currencies, price structures (commisioned based reselling, royalty fee, etc.).
So my mission is to set up the shop so that when a user/client logs in, he can only see those products that fit his class. I've done some thinking and I believe that it's best to group the products into different groups and then connect the clients to these groups so that they only see the options available for each group.
I'm a bit lost for the moment, but I need this to be set up in a relatively short time and it should not be to complicated setup. I've been looking at some of the access control modules, but I'm not seeing the best one to use for Drupal Commerce.
Thougt I would post this here to start the discussion as I'm sure I'm not the only one with this, or similar issues.
rgrds. Jon
Comments
contextual filters
I have a similar use case (however, not tested for Commerce prices), and I have two methods:
- using (a modified version of ) ABT (access by term)
- using contextual filters in views.
I used the following script:
- set up data:
-- set up vocabularies and terms for each group (e.g., region, customer type)
-- append the user account with the terms
-- create prices, append the price records with the terms.
- set up views:
- using ABT, you can control access based upon shared terms.
- using Views contextual filters, you can set up a view, with a filter that reads the terms from the user, so that only the correctly tagged prices and products are shown.
Thanks a lot for this. I'll
Thanks a lot for this. I'll give it a try.
I noticed that you use (a modified version of) ABT. Is it a considerable modification or some minor adjustment. Just wondering if ABT could be used as is.
Again, thanks
Jon