Jump to content
DeWebDude

how to hide products and services in support tickets?

Recommended Posts

Hello All,

 

I'm trying to figure out when you go to a support ticket how to "hide" the clients services, in some cases it's only one line, but on a bigger client it may be 10 lines, which just takes up too much screen space when working on a ticket.

Thanks!

Share this post


Link to post
Share on other sites
18 hours ago, DeWebDude said:

I'm trying to figure out when you go to a support ticket how to "hide" the clients services, in some cases it's only one line, but on a bigger client it may be 10 lines, which just takes up too much screen space when working on a ticket.

do you mean the Related Services table shown on the ticket page...?

3NH5Mc4.png

if so, you could hide it with a hook - either by nulling the relevant array, or using CSS to hide the table.

Share this post


Link to post
Share on other sites
15 hours ago, DeWebDude said:

Yes, I believe that would be it.

to null the array, would just need a quick hook...

<?php

function admin_remove_ticket_related_services_hook($vars) {

	if ($vars['pagetemplate'] == "viewticket") {
		return array ("relatedservices" => null);
	}
}
add_hook("AdminAreaPage",1,"admin_remove_ticket_related_services_hook");

Share this post


Link to post
Share on other sites

Sorry for the delayed response!

This worked perfectly, thank you!

I wanted to make sure that I only needed to add the add_hook & function in hooks.php ( where I currently have it)?

 

Thanks again!

 

Share this post


Link to post
Share on other sites

Unfortunately brian! Left the community after becoming a bit miffed with whmcs and the way they treat people! 

I like to think he's chilling, with his feet up but a man this dedicated to helping others will struggle to just stop! Either way, don't take it personally if you get ignored! Staff rarely help unless it's to do with them getting paid and the best members of the community have already ditched us 😜

If you post more about the issue you may drop lucky with someone who knows! WHMCS do claim to offer super duper *premium* support to members now in exchange for huge price increases so you could raise a ticket and if they've managed to plug the licensing servers back in and find the power button you may get some help! 

Share this post


Link to post
Share on other sites

For me, I edited the template to move the services to the bottom. There if I need to see it, just scroll down. 

Share this post


Link to post
Share on other sites
On 30/09/2021 at 23:56, Bigol'tastynuggets said:

Unfortunately brian! Left the community after becoming a bit miffed with whmcs and the way they treat people! 

as I said in another thread, I no longer need to work - so why spend my time constantly supporting failing software that I will never use?

On 30/09/2021 at 23:56, Bigol'tastynuggets said:

I like to think he's chilling, with his feet up but a man this dedicated to helping others will struggle to just stop!

on the contrary, i'm genuinely finding it easy... I knew for the last 2 days, i'd be coming here today and I wasn't looking forward to it.

I wish I had logged in today, found all/most the threads getting answered by others... in reality, I sadly find that despite not being here for two months, i'm still top of the monthly reputation leader board... that's ridiculous and shows you how dead this place has become.

sadly, I no longer want to come here frequently and reply to questions.... I can still do it if I choose to, and I know i'm probably the best at it, but my heart is no longer in it (and that's not going to change).

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated