Jump to content

Redirect presales submitter to login if a registered client


HostinPK

Recommended Posts

You can do this by simply adding a text like:

"Existing customers please log in and submit your support ticket from your client area for faster response"

 

Because if they have not logged in yet, there is no way to determine if the visitor is your existing client or not.

 

If they are already logged in, you can edit your ticket template and only show the pre-sales to those who are not logged in.

 

Using a simple if statement would do this trick.

Link to comment
Share on other sites

If they are already logged in, you can edit your ticket template and only show the pre-sales to those who are not logged in.

 

Using a simple if statement would do this trick.

 

Thanks for your answer but how can I do this? I am not very good in coding. Is there anyone who can help me?

Link to comment
Share on other sites

Thanks for your answer but how can I do this? I am not very good in coding. Is there anyone who can help me?

 

Hi,

 

The docs at http://docs.whmcs.com/Template_Syntax cover exactly what you want:

 

Displaying Text to Logged In Users Only

 

To display something on the page only if a user is logged in, use the following syntax:

 

{if $loggedin}

User is logged in so display client only information

{else}

User is not logged in so display this

{/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