Nmuta Posted May 31, 2010 Share Posted May 31, 2010 (edited) I have a custom template in whmcs and I've edited header.tpl, homepage.tpl, and footer.tpl The page looks perfect. However, when I go to the shopping cart page, for example, that page does not use the template I used. The header and footer are there, but the core cart.php file does not use the template that I have created, and if I try to edit cart.php, I get a message saying that the file is 'corrupted'. What am I doing wrong? It's the same way with so many other pages.... they won't let me touch them. How do I get the contents of these files to show up within the context of the template that I have created? Thanks in advance. By the way, here is an example of what I mean: Home page is fine: http://www.bizgronetwork.com/whmcs/ But submit ticket page is not: http://www.bizgronetwork.com/whmcs/submitticket.php Edited May 31, 2010 by Nmuta 0 Quote Link to comment Share on other sites More sharing options...
Creative Teamspeak Posted May 31, 2010 Share Posted May 31, 2010 You can't edit the php files but only the .TPL files 0 Quote Link to comment Share on other sites More sharing options...
HostOrca Posted May 31, 2010 Share Posted May 31, 2010 (edited) It's not the cart.php file that you want to edit. If you go into the templates folder you will see the following folders: Default Portal Cart (I think that's what it is named). It's the .tpl files in the Cart folder that you want to edit. For the submitticket you want to go into the templates folder, select the folder containing the templates you are using (ie portal, default, or a custom one), and look for the submitticket.tpl file which you can edit. Don't forget to empty the templates_c folder after you have edited the template files. Edited May 31, 2010 by HostOrca 0 Quote Link to comment Share on other sites More sharing options...
Nmuta Posted May 31, 2010 Author Share Posted May 31, 2010 I see templates/orderforms/cart I assume this is where I need to be working for cart files correct? I got everything working now EXCEPT the cart files, which seem to have some extra junk in them that is messing up my template and throwing things off 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted May 31, 2010 WHMCS Support Manager Share Posted May 31, 2010 Instructions for customising the order form: http://wiki.whmcs.com/Order_Form_Templates If you can be more specific about how it's "messed up" maybe we can be more specific about how to fix it 0 Quote Link to comment Share on other sites More sharing options...
Nmuta Posted June 1, 2010 Author Share Posted June 1, 2010 Well, to use a technical terms, there's a bunch of junk in the cart.php file. But yes, seriously, what is happening is an effect that looks similar to the effect you get when you have an extra <td> or an unclosed <tr> tag..... the cart.php file has some misaligned table elements and background images of table elements that is causing the page not to display properly: Here is the one broken page: http://www.bizgronetwork.com/whmcs/cart.php But all of the other pages on the site look fine, like this one for example: http://www.bizgronetwork.com/whmcs/supporttickets.php 0 Quote Link to comment Share on other sites More sharing options...
Nmuta Posted June 1, 2010 Author Share Posted June 1, 2010 Ok, I think I may have determined part of the problem. The cart.php contents are too wide for my template. (which should not be the case, because the cart contents seem to be in a table that has a relative width (100%) But at any rate, the table that is created with the cart contents in it is too wide and that seems to be breaking my template apart . I don't see the code in products.tpl that govern how wide the table is that holds the products in it. Where does that code come from ? (the code that is used to display the cart elements)? It does not appear to be in the admin --> setup --> products/services drop down menu. 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.