nick8701 Posted January 10, 2009 Share Posted January 10, 2009 Hi people im a bit confused as to how to custimise the template. Or which template to customise. AS i dont know any php just know html. How do we start going about to custimise the order form, ive looked at the documentation and looked in the Customising WHMCS section. But it is rather brief and gives not much details on how to customise the template. Wouldnt it be better if you gave us an example template so we know how to customise it??? And which file do i customise to integrate the template into the website??? please help, im soooo lost at the moment????? 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted January 10, 2009 Share Posted January 10, 2009 Wouldnt it be better if you gave us an example template so we know how to customise it??? WHMCS comes with multiple templates as standard In principle, just edit the header and footer tpl files... 0 Quote Link to comment Share on other sites More sharing options...
chickendippers Posted January 10, 2009 Share Posted January 10, 2009 All you need is HTML. 0 Quote Link to comment Share on other sites More sharing options...
jackgordon Posted January 10, 2009 Share Posted January 10, 2009 I am confused about this as well. I have not been able to find any kind of tutorial on this that made any sense? Can anybody be more specific? 0 Quote Link to comment Share on other sites More sharing options...
chickendippers Posted January 10, 2009 Share Posted January 10, 2009 Have you read the customising WHMCS section of the wiki? http://wiki.whmcs.com 0 Quote Link to comment Share on other sites More sharing options...
nick8701 Posted January 10, 2009 Author Share Posted January 10, 2009 (edited) glad to see im not the only one having problems jackgordon, thanks for the reply everyone. ive visted http://wiki.whmcs.com but it doesnt say which templates to edit. I want to edit the orderform templates, so does that mean i have to edit all the templates listed in that file. i.e. adddomain, addons, complete, configuredomains, configureproducts, confiugure productdomain, fraudcheck, login, products, viewchart????? Do i have to configure all these "templates" in the default area of the folder??? If so chicken dippers u mentioned HTML, so do i need to create another html file called "order" and copy and paste the info from the templates to the html file??? Or if i do edit the above mentioned templates how do i do that??? do i need a program to edit those templates??? I have dreamweaver but it doesnt show the full image of the default template???? othellotech u mentioned editing the header and footer tpl files, but which one to edit, all the templates mentioned above??? And which folder of templates do i edit??? is it templates_c or templates???? please help im very confused??? thanks Edited January 10, 2009 by nick8701 0 Quote Link to comment Share on other sites More sharing options...
chickendippers Posted January 10, 2009 Share Posted January 10, 2009 (edited) WHMCS uses a smarty template system, this means you can customise pretty much every part of the customer-facing pages if you wish. However to make it look like your website all you need to do is edit header.tpl and footer.tpl. The tpl files are basically just html. I shall expand on the instructions on this page: http://wiki.whmcs.com/Client_Area_Template_Files Copy the templates/default folder and rename it to your company's name. For example in my templates folder I have; default, orderforms, and valcato. Edit the header.tpl and footer.tpl files, all you need is notepad...you should be able to use dreamweaver. header.tpl is the code for the top-half of your webpage, WHMCS then inserts the content (which you can modify using all the other template files if you wish) and footer.tpl is the bottom half of the page. Once you've edited the two files, upload them. Then just go to Configuration > General Settings in the WHMCS admin to change from the default template to your custom one. You could always just pay WHMCS to do this customisation for you: http://www.whmcs.com/services.php Edited January 10, 2009 by chickendippers Added final bullet point 0 Quote Link to comment Share on other sites More sharing options...
nick8701 Posted January 10, 2009 Author Share Posted January 10, 2009 (edited) Thanks for the advice chickendippers, i shall implement that straight away. Ill try using notepad now, as dream weaver is making my task harder. So i just edit header and footer, nothing else, then? Ok, and after i edit it. Do i have to change the directory of the images? Or do i copy the images in my notmal html folder to the images folder in the defult page??? Do i put the images in the whmcs/images directory or the whm/templates/company name/images??? Also when click on the link it says: http://www.domain.com/whmcs/index.php How do i change it to say: http://www.domain.com/index.php ????? any help would be great Edited January 10, 2009 by nick8701 0 Quote Link to comment Share on other sites More sharing options...
chickendippers Posted January 10, 2009 Share Posted January 10, 2009 You'll need to do header and footer and the css file (unless you want blue hyperlinks). You can put the images wherever you like, as long as you specify the correct path in the templates. Leaving them in images/ will be fine. To move the WHMCS directory, read http://wiki.whmcs.com/Licensing You will need to put it in your public_html directory (assuming you're using cPanel). 0 Quote Link to comment Share on other sites More sharing options...
nick8701 Posted January 10, 2009 Author Share Posted January 10, 2009 For example- chickendippers your shopping cart form says: https://billing.valcatosupport.com/cart.php?a=add&pid=18 how do i make mine to say https://domain.com/cart.php?a=add&pid=18 ???? Do i need to copy all the files on my whmcs folder and paste it into the public html folder and then delete all the other files in the whmcs folder all together. so would that make it like: https://domain.com/cart.php?a=add&pid=18 or do i need to do anything else with it???? yes im using C-panel so i just put all the files in my public html folder, with no whmcs folder in it??? 0 Quote Link to comment Share on other sites More sharing options...
chickendippers Posted January 10, 2009 Share Posted January 10, 2009 That's basically what you need to do to move the files. Then you need to reissue your license through the WHMCS client area. 0 Quote Link to comment Share on other sites More sharing options...
nick8701 Posted January 11, 2009 Author Share Posted January 11, 2009 ok ive started custimising the templates, the header and footer, but thhen i paste the header onto the template it streches the cart in the middle. having problems making it work. its soo frustrating. 0 Quote Link to comment Share on other sites More sharing options...
Zorro67 Posted January 11, 2009 Share Posted January 11, 2009 (edited) Nick, HTML is really all you need to get started I find using notepad++ a bit easier, as it match pairs of items and colour codes different types of text. I also find it when I'm customising templates that it helps if I spend 5 minutes lining up the <table>...</table> by inserting tabs. That way the start and end point of a batch of code are more obviously, which then makes the whole {if} thing that much more comprehensible. It will definetly make your task that bit easier. Edited January 11, 2009 by Zorro67 0 Quote Link to comment Share on other sites More sharing options...
nick8701 Posted January 12, 2009 Author Share Posted January 12, 2009 thanks for the advice Zorro67 i shall definately implement your suggestions, ill use note pad now. Dreamweaver is just messing everything up and im getting confused as im looking at the design view instead of the code view. And just copying and pasting my existing template on to the header.tpl file. Ahh coding why oh why.. Ill definately give it a try though 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.