Jump to content

the UNTOUCHABLE whmcs pages


Recommended Posts

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:



But submit ticket page is not:


Edited by Nmuta
Link to comment
Share on other sites

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:




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 by HostOrca
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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:



But all of the other pages on the site look fine, like this one for example:


Link to comment
Share on other sites

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.

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.

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