Jump to content

Back Office Customer Support & Employees


mpatzekov

Recommended Posts

Hi guys, 

 

I am currently developing a Prestashop site and I was wondering if I can do one very useful thing, either by modifying the templates or by using a module. So, here is the situation:

 

1. I have Employee 1;

2. I have Employee 2;

3. In the front office, there is a Customer and he or she goes to the contacts page;

4. The Customer chooses to send a message to Employee 1;

5. The message is sent and it can be seen at the Back Office;

6. Employee 1 and Employee 2 can see the thread and answer to it;

 

7. Is it possible to restrict the access to a thread in customer service only to the Employee it is intended to? In other words, Employee 1 sees only the threads which are assigned to him or her via the contact form at the front office contacts page, Employee 2 sees his or hers threads and the Administrators see all threads.

 

Does somebody know a solution to this scenario? 

 

Thanks!

Martin P.

Link to comment
Share on other sites

Hi guys, 

 

I am currently developing a Prestashop site and I was wondering if I can do one very useful thing, either by modifying the templates or by using a module. So, here is the situation:

 

1. I have Employee 1;

2. I have Employee 2;

3. In the front office, there is a Customer and he or she goes to the contacts page;

4. The Customer chooses to send a message to Employee 1;

5. The message is sent and it can be seen at the Back Office;

6. Employee 1 and Employee 2 can see the thread and answer to it;

 

7. Is it possible to restrict the access to a thread in customer service only to the Employee it is intended to? In other words, Employee 1 sees only the threads which are assigned to him or her via the contact form at the front office contacts page, Employee 2 sees his or hers threads and the Administrators see all threads.

 

Does somebody know a solution to this scenario? 

 

Thanks!

Martin P.

 

It's not supported by Prestashop, you need to make some custom code change or develop a module to archive what you want

Link to comment
Share on other sites

Thanks for the suggestions. Just to add, my installation is 1.6.1.4

 

Actually, I have the logic in my head but it's hard to execute it in the php template. However, I tried to do something like this in /controllers/admin/AdminCustomerThreadsController.php 

 

So, my idea was to do something like:

 

        global $cookie;
        
        $id_employee = $this->context->employee->id;        
        $action1 = show the threads assigned only to customer with email [email protected];
        $action2 = show the threads assigned only to customer with email [email protected];
        $action3 = show all threads;
       
 
        if ($id_employee == 1) {
          
            $action1;
           
        } elseif ($id_employee == 5) {
        
           $action2;
           
        } else {
        
           $action3;
 
        }
 
 
Unfortunately, I find it difficult to make the system understand the php conditions and even do the easiest thing - to echo some custom text depending on the user id. For example:
 
      if ($id_employee == 1) {
          
            echo 'Hey, you are user #1';
           
        } else {
        
            echo 'Hey, you are NOT user #1';
 
        }

 

If anyone has an idea how to do this thing, I will really appreciate the help! 

 

Thanks,

Martin

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...