Jump to content

Site Integration Help


Yanix

Recommended Posts

Hey. I'm pretty new and I've had my WHMCS license for nearly a month now but I'm redesigning the site and I wondered if there was a way to do the following:

  • Add A Login-Logout Button - See if they're logged in, if so, display a logout button and a login form if they're logged out etc.
  • Add a My-Cart Section so they can see all products in the cart from my actual site.

Thanks

 

It's greatly appreciated,

 

R. Stubbs, Yanix Web Solutions

Link to comment
Share on other sites

 {if $loggedin} <a href="logout.php">{$LANG.logouttitle}</a> {else} <a href="clientarea.php">{$LANG.loginbutton}</a>{/if}

 

Unless you really do want the form then you can just do:

 

{if $loggedin} <a href="logout.php">{$LANG.logouttitle}</a> {else} 
<form action="{$formaction}" method="post">

{if $incorrect}<p class="error">{$LANG.loginincorrect}</p>{/if}

<table id="funds" cellspacing="0" cellpadding="0">
<tr>
	<td class="fieldarea">{$LANG.loginemail}:</td>
	<td><input type="text" name="username" size="40" value="{$username}" /></td>
</tr>

<tr>
	<td class="fieldarea">{$LANG.loginpassword}:</td>
	<td><input type="password" name="password" size="25" value="{$password}" /></td>
</tr>
</table>

<p align="center"><input type="submit" value="{$LANG.loginbutton}" /><br /><input type="checkbox" name="rememberme"{if $rememberme} checked="checked"{/if} /> {$LANG.loginrememberme}</p>

</form>

{/if}

Link to comment
Share on other sites

my recommendation is to place a support ticket, Matt is affordable, fast, and 100% top teired in all aspects of this program. I have asked for a few things, he delivered within hours for a job that would have taken days to complete. If this is important to you and your site, have Matt do it.

 

This is one of the best programs, support and community I have ever dealt with.

Link to comment
Share on other sites

Is there a way to do this on my actual website?

 

I mean, like include a certain file and be able to access user stuff?

 

You have to edit the template files (.tpl) in order for changes to take effect in your client area. You'll find them under: whmcsdirectory/templates/templatename/filename.tpl.

 

You'll open that up, and edit it.

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