Jump to content

Adding "Urgent" priority to support ticket


gavingwatson

Recommended Posts

Hello,

I need to add another priority to support tickets labelled "Urgent" and pick this up in a hook to do something. I am struggling to achieve this (why this is not already possible is beyond me).

I have modified supportticketsubmit-steptwo.tpl to add the category, which is visible in the client area to support the ticket, but despite this, it continues to get raised as "Medium" (which is the default one).

At the moment I suspect this may be because there is not a word for "Urgent" in the language folder/database as it seems to use this for Low, Medium and High {$LANG.supportticketsticketurgencyhigh} 

The ticket gets raised correctly, but it ignores the value I have used, I simply entered my own value as follows:
 

       <select name="urgency" id="inputPriority" class="form-control">
                <option value="Urgent"{if $urgency eq "Urgent"} selected="selected"{/if}>
                    Urgent
                </option>
                <option value="High"{if $urgency eq "High"} selected="selected"{/if}>
                    {$LANG.supportticketsticketurgencyhigh}
                </option>
                <option value="Medium"{if $urgency eq "Medium" || !$urgency} selected="selected"{/if}>
                    {$LANG.supportticketsticketurgencymedium}
                </option>
                <option value="Low"{if $urgency eq "Low"} selected="selected"{/if}>
                    {$LANG.supportticketsticketurgencylow}
                </option>
            </select>


The I wanted to pick it up with something like this :

 

<?php
add_hook('TicketOpen', 1, function($vars) {
    
    $str = var_export($vars, true);
    
    if (strpos($haystack, "'priority' => 'Urgent'") !== false)
         {


 I know the value is there, but it just appears as "Medium" instead of the "Urgent" I created it as.

So... how can I achieve this? Can I add a word for Urgent so it uses this :    {$LANG.supportticketsticketurgencyhigh} if so, where is that stored and how can I create my own custom word there? I saw a reference to lang folders, but I can't find them anywhere.

Any help would be appreciated.

Link to comment
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