X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Created new template - links broken. HELP please. (https://forum.x-cart.com/showthread.php?t=13050)

NJB 03-27-2005 07:29 PM

Created new template - links broken. HELP please.
 
I have created an addtitional menu column on my home page, which I modelled on "help.tpl", and called "help2.tpl". I also created a separate help2 directory. The issue I am having is that none of the links (ie. to the wholesale discounts page) will work. I get a HTTP 404 - File not found error.

I've double-checked that the names of the files are exactly the same to rule out case-sensitive issues, and can't figure out what I'm doing wrong.
All the template pages I want to link to are located in the help2 directory.

Here's an example from help2.tpl....have I got something wrong with the code?


Any help is appreciated. Thanks.

balinor 03-28-2005 05:07 AM

That is because you are calling help2.php, which doesn't exist unless you created a new .php file. Remember, .php files are different than .tpl files.

NJB 03-28-2005 12:24 PM

This is probably a silly question, but where and how do I create php files?

balinor 03-28-2005 12:28 PM

You shouldn't need to if you are just creating new menus. Just create the the templates like you have and call them from home.tpl. Then put the links you want in the new menus. Exactly what page are you trying to create a link to? Is the Wholesale Discounts page a static page you have created?

NJB 03-29-2005 12:47 AM

I was trying to link to templates I'd created, but linking to the Static pages was much much easier. Thanks for pointing me in the right direction.


All times are GMT -8. The time now is 02:56 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.