Page 1 of 1

Add popup before ticket form

Posted: Mon Sep 21, 2020 10:40 am
by caygri
Hello,

it's possible add before on the end of ticket form a text popup or some text written in different color?

Re: Add popup before ticket form

Posted: Mon Sep 21, 2020 3:36 pm
by caygri
Hello I add some extra text from custom-ticket.php in themes but show in all department now...
how can I show this text in only one department form?

Re: Add popup before ticket form

Posted: Mon Sep 21, 2020 4:21 pm
by Klemen
Not sure which file you are editing, but if it's create-ticket.php you can use the variable $categoryId to find what the current category is.

Code: Select all

if ($categoryId == 1) {
    // do this...
} elseif ($categoryId == 4) {
    // do that...
}

Re: Add popup before ticket form

Posted: Mon Sep 21, 2020 6:46 pm
by caygri
I edit theme/hesk3/customer/create-ticket/create-ticket.php



ok i add this cycle.