Results 1 to 7 of 7

Thread: custom message

  1. #1
    Join Date
    Jan 2007
    Location
    Australia/USA/Thailand
    Posts
    145

    Default custom message

    I currently only allow registered clients to open support tickets. But I would like non members to be able to contact us even if they don't see the pre-sales question link on the Support page.

    So I was wondering if it would be possible to add the "If you have pre-sales questions, click here to contact us." link to the Submit support ticket template?

    I would also like to add a similar link to the Affiliate section.

    Is this possible?

    Thanks,
    Rob

  2. #2
    Join Date
    Oct 2005
    Location
    Los Angeles, CA
    Posts
    1,569

    Default

    Hey,

    You should be able to do by editing one of the support .tpl files.

    From,
    Adam
    WHMCS Customer Since October 2005
    CheckOutScript - Copy of Order sent to an email (legacy order form only)
    Kayako to WHMCS - Integration (deprecated)
    www.EastSolid.com - FREE End User Support

  3. #3
    Join Date
    Jul 2005
    Location
    UK
    Posts
    8,437

    Default

    This can be achieved using the logged in variable, for example:

    Code:
    {if $loggedin}
    Display support ticket departments
    {else}
    If you have pre-sales questions, please click here.
    {/if}
    This would need to go in the submitticket-stepone.tpl file.

    Matt
    WHMCompleteSolution
    The Complete Client Management, Billing & Support Solution
    www.whmcs.com

  4. #4
    Join Date
    Jan 2007
    Location
    Australia/USA/Thailand
    Posts
    145

    Default

    Sorry for the noobism..... but I added the code to the supportticketsubmit-stepone.tpl (see below) and I removed the cached file but nothing is showing up? Any idea?

    Thanks,
    Rob



    {$LANG.supportticketsheader}</p>

    {if $loggedin}
    Display support ticket departments
    {else}
    If you have pre-sales questions, please click here.
    {/if}

    <ul>
    {foreach key=num item=department from=$departments}[*]{$department.name} - {$department.description}
    {/foreach}[/list]

  5. #5
    Join Date
    Jan 2007
    Location
    Australia/USA/Thailand
    Posts
    145

    Default

    Anyone?

  6. #6
    Join Date
    Oct 2005
    Location
    Los Angeles, CA
    Posts
    1,569

    Default

    Hey,

    Put this in your config.php and clear out your template_c folder and run the page again.

    Code:
    $display_errors="on";
    From,
    Adam
    WHMCS Customer Since October 2005
    CheckOutScript - Copy of Order sent to an email (legacy order form only)
    Kayako to WHMCS - Integration (deprecated)
    www.EastSolid.com - FREE End User Support

  7. #7
    Join Date
    Feb 2007
    Posts
    378

    Default

    You need to put this:

    Code:
    {if $loggedin} 
    <ul> 
    {foreach key=num item=department from=$departments} [*]{$department.name} - {$department.description} 
    {/foreach} [/list]
    {else} 
    If you have pre-sales questions, please click here. 
    {/if}

    Should work then. The "Display support ticket departments" is just a description not a command

    Ad

Similar Threads

  1. custom message for specific product group
    By Chad in forum Customisation & Integration Questions
    Replies: 10
    Last Post: 02-15-12, 09:13 PM
  2. Boxes Template: If Category Empty Custom Message
    By BionHostStan in forum Feature Requests
    Replies: 1
    Last Post: 08-01-07, 10:14 PM