Jump to content

Link ticket to entity


CrunchyToast

Recommended Posts

Good evening,

 

I am currently working on a module that will create an entity. Is there a way that I can create a ticket have it automatically linked to this entity?

 

I thought about having custom fields, but if a user creates a new support department then they have to create the custom field and if they forget then the module will not work as expected.

 

If any more information is needed, please let me know. Thanks in advance.

Link to comment
Share on other sites

Good evening,

 

I am currently working on a module that will create an entity. Is there a way that I can create a ticket have it automatically linked to this entity?

 

I thought about having custom fields, but if a user creates a new support department then they have to create the custom field and if they forget then the module will not work as expected.

 

If any more information is needed, please let me know. Thanks in advance.

do you have example that explain what you are trying to do?

 

- - - Updated - - -

 

Hi, ive tried to add html link on bank transfer on whmcs6 but its not working, kindly help

open this file for editing /modules/gateways/banktransfer.php

 

replace the following line:

$code = '<p>'.nl2br($params['instructions']).'<br />'.$_LANG['invoicerefnum'].': '.$params['invoiceid'].'</p>';

 

with this line:

$code = '<p>'.html_entity_decode(nl2br($params['instructions'])).'<br />'.$_LANG['invoicerefnum'].': '.$params['invoiceid'].'</p>';

Link to comment
Share on other sites

Hi, ive tried to add html link on bank transfer on whmcs6 but its not working, kindly help

 

This has nothing to do with this post...

 

 

do you have example that explain what you are trying to do?

 

The module I'm working on allows users to track items. What I want to do is have a link to open a ticket, but have the ticket connected somehow to that item. Again, I thought about using custom fields in support departments, but if an admin creates a new support department then they have to create the custom field. If they forget to add the custom field then the module will not work as it should. I'm trying to see if there is another way to associate a ticket to the item. I hope that makes sense.

Link to comment
Share on other sites

you can simple link to this ticket from the "entity" or "item" table in database, this will be easier and no worries about the department creation I think.

 

the other solution is the custom filed, you can go that way if you need both your client and staff to see what value is in there.

Link to comment
Share on other sites

you can simple link to this ticket from the "entity" or "item" table in database, this will be easier and no worries about the department creation I think.

 

That is how I plan to do it, but do you know a way to have it automatically link? The only thing I could think of off the top of my head is to use my own ticket creation form in the admin panel then use a hook so I can retrieve the ticket number in the DB.

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