Jump to content

Using conditional display


consc198

Recommended Posts

Hello everyone,

 

I am trying to use the conditional display to send different text depending on when a support ticket has been opened, here is what i am trying to achieve - is this correct?

 

----------

 

Dear {$client_name},

 

{if $ticket_Department eq "Sales Department" and $ticket_date_opened greaterthan 17:00 or lessthan 9:00}

Thank you for contacting our Sales Department. A sales ticket has now been opened for your request. Please note that our Sales Department is open from 9am GMT until 5pm GMT daily (incl. weekends and holidays). You will be notified when a response is m ade by email. The details of your ticket are shown below.

 

Subject: {$ticket_subject}

Priority: {$ticket_priority}

Status: {$ticket_status}

 

You can view the ticket at any time at {$ticket_link}

 

{$signature}

 

{if $ticket_Department eq "Billing Department" and $ticket_date_opened greaterthan 17:00 or lessthan 9:00}

Thank you for contacting our Billing Department. A billing ticket has now been opened for your request. Please note that our Billing Department is open from 9am GMT until 5pm GMT daily (incl. weekends and holidays). You will be notified when a response is m ade by email. The details of your ticket are shown below.

 

Subject: {$ticket_subject}

Priority: {$ticket_priority}

Status: {$ticket_status}

 

You can view the ticket at any time at {$ticket_link}

 

{$signature}

 

{if $ticket_Department eq "Support Department" and $ticket_date_opened greaterthan 21:00 or lessthan 5:00}

Thank you for contacting our Support Department. A support ticket has now been opened for your request. Please note that our Support Department is open from 5am GMT until 9pm GMT daily (incl. weekends and holidays). You will be notified when a response is m ade by email. The details of your ticket are shown below.

 

Subject: {$ticket_subject}

Priority: {$ticket_priority}

Status: {$ticket_status}

 

You can view the ticket at any time at {$ticket_link}

 

{$signature}

 

{else}

 

Thank you for contacting our support team. A support ticket has now been opened for your request. You will be notified when a response is made by email. The details of your ticket are shown below.

 

Subject: {$ticket_subject}

Priority: {$ticket_priority}

Status: {$ticket_status}

 

You can view the ticket at any time at {$ticket_link}

 

{$signature}

 

{/if}

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