evolvewh Posted March 30, 2017 Report Posted March 30, 2017 (edited) I need to come back to this and document the code for anyone wanting to use this but I was able to modify the client area a bit for support tickets in v4.0 Version used: 4.0 Backup all Support Manager files and database first!!! The following allows you to: 1) Add the status 'On Hold' 2) Add the different statuses in 'tabs' like you see above 3) Modify the status (mainly to change 'open' to Awaiting Staff or Client Reply') What I did not do: I did not edit the 'tabs' on the client view page from the admin side; it's only edited under Support -->> Tickets on the admin and client side. plugins/support_manager/views/default/admin_tickets.pdt Line 8, add: ['name'=>$this->_('AdminTickets.index.category_on_hold', true) . ' <span>(' . $this->Html->_($status_count['on_hold'], true) . ')</span>', 'current'=>($this->Html->ifSet($status) == 'on_hold' ? true : false), 'attributes'=>['href'=>$this->base_uri . 'plugin/support_manager/admin_tickets/index/on_hold/', 'class'=>'ajax']], plugins/support_manager/language/en_us/admin_tickets.php Line 28, add: $lang['AdminTickets.index.category_on_hold'] = 'On Hold'; plugins/support_manager/controllers/admin_tickets.php Line 102, add: 'on_hold' => $this->SupportManagerTickets->getStatusCount('on_hold', $this->staff_id), Line 179, add: 'on_hold' => $this->SupportManagerTickets->getStatusCount('on_hold', $this->staff_id, $client->id), plugins/support_manager/views/default/client_tickets.pdt Line 15 - 19 become: ['name'=>$this->_('ClientTickets.index.category_open', true) . ' <span>(' . $this->Html->_($status_count['open'], true) . ')</span>', 'current'=>($this->Html->ifSet($status) == 'open' ? true : false), 'attributes'=>['href'=>$this->base_uri . 'plugin/support_manager/client_tickets/index/open/', 'class'=>'ajax']], ['name'=>$this->_('ClientTickets.index.category_awaiting_reply', true) . ' <span>(' . $this->Html->_($status_count['awaiting_reply'], true) . ')</span>', 'current'=>($this->Html->ifSet($status) == 'awaiting_reply' ? true : false), 'attributes'=>['href'=>$this->base_uri . 'plugin/support_manager/client_tickets/index/awaiting_reply/', 'class'=>'ajax']], ['name'=>$this->_('ClientTickets.index.category_in_progress', true) . ' <span>(' . $this->Html->_($status_count['in_progress'], true) . ')</span>', 'current'=>($this->Html->ifSet($status) == 'in_progress' ? true : false), 'attributes'=>['href'=>$this->base_uri . 'plugin/support_manager/client_tickets/index/in_progress/', 'class'=>'ajax']], ['name'=>$this->_('ClientTickets.index.category_on_hold', true) . ' <span>(' . $this->Html->_($status_count['on_hold'], true) . ')</span>', 'current'=>($this->Html->ifSet($status) == 'on_hold' ? true : false), 'attributes'=>['href'=>$this->base_uri . 'plugin/support_manager/client_tickets/index/on_hold/', 'class'=>'ajax']], ['name'=>$this->_('ClientTickets.index.category_closed', true) . ' <span>(' . $this->Html->_($status_count['closed'], true) . ')</span>', 'current'=>($this->Html->ifSet($status) == 'closed' ? true : false), 'attributes'=>['href'=>$this->base_uri . 'plugin/support_manager/client_tickets/index/closed/', 'class'=>'ajax']] plugins/support_manager/language/en_us/client_tickets.php Lines 19-22: $lang['ClientTickets.index.category_open'] = 'Awaiting Company Reply'; // Modify this any way you want to display to your clients in their account area $lang['ClientTickets.index.category_awaiting_reply'] = 'Awaiting Client Reply'; // Modify this any way you want to display to your clients in their account area $lang['ClientTickets.index.category_in_progress'] = 'In Progress'; $lang['ClientTickets.index.category_on_hold'] = 'On Hold'; plugins/support_manager/controllers/client_tickets.php Line 81 - 85 become: 'open' => $this->SupportManagerTickets->getStatusCount('open', null, $this->client_id), 'awaiting_reply' => $this->SupportManagerTickets->getStatusCount('awaiting_reply', null, $this->client_id), 'in_progress' => $this->SupportManagerTickets->getStatusCount('in_progress', null, $this->client_id), 'on_hold' => $this->SupportManagerTickets->getStatusCount('on_hold', null, $this->client_id), 'closed' => $this->SupportManagerTickets->getStatusCount('closed', null, $this->client_id) plugins/support_manager/models/support_manager_tickets.php Line 301, add: where('support_tickets.status', '!=', 'on_hold')-> Line 1192, add: 'on_hold' => $this->_('SupportManagerTickets.status.on_hold'), Through phpMyAdmin, update the database to add 'on_hold' Table: support_tickets Go to structure and add 'on_hold' to the status column Edited May 1, 2017 by evolvewh Added code Daniel B and Michael 2 Quote
evolvewh Posted March 31, 2017 Author Report Posted March 31, 2017 I did a few things. I added 'On Hold' and then I broke out all of the statuses in the client area (instead of just open and closed). I did the same on the admin side. Paul 1 Quote
Daniel B Posted April 26, 2017 Report Posted April 26, 2017 Would love to see the code for this evolvewh 1 Quote
Blesta Addons Posted April 27, 2017 Report Posted April 27, 2017 Would love to see it in core Jason Ryan, Daniel B and evolvewh 3 Quote
evolvewh Posted April 27, 2017 Author Report Posted April 27, 2017 Let me find some free time to get all of the code posted. Quote
evolvewh Posted April 28, 2017 Author Report Posted April 28, 2017 I've started to look at this and I've done a few things in our changes: 1) Added status of 'On Hold' 2) Got rid of all of the different ticket priorities and just made one 3) Added the separate 'tabs' for each status on the admin and client side Do you want all of these changes or only some of them? Daniel B 1 Quote
Daniel B Posted May 1, 2017 Report Posted May 1, 2017 On 4/28/2017 at 8:30 AM, evolvewh said: I've started to look at this and I've done a few things in our changes: 1) Added status of 'On Hold' 2) Got rid of all of the different ticket priorities and just made one 3) Added the separate 'tabs' for each status on the admin and client side Do you want all of these changes or only some of them? All of them would be fine, just to have them posted somewhere to see how to do it...then can edit from there as needed Quote
evolvewh Posted May 1, 2017 Author Report Posted May 1, 2017 5 hours ago, Daniel B said: All of them would be fine, just to have them posted somewhere to see how to do it...then can edit from there as needed Code has been added to the first post. Paul, Daniel B and Michael 3 Quote
Blesta Addons Posted May 2, 2017 Report Posted May 2, 2017 7 hours ago, evolvewh said: Code has been added to the first post. My eyes goes to "awaiting staff reply" and "awaiting client reply". Quote
evolvewh Posted May 2, 2017 Author Report Posted May 2, 2017 42 minutes ago, Blesta Addons said: My eyes goes to "awaiting staff reply" and "awaiting client reply". What do you mean by that? That was a personal change that I made for our use but it can just stay as 'Open' and 'Awaiting Reply'. Quote
activa Posted May 2, 2017 Report Posted May 2, 2017 Awaiting staff or client reply is a good status and already requested but not yet implemented in the core. Blesta Addons and evolvewh 2 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.