Forums / General Questions / Template override problem

Template override problem

Locked
Results 1 to 7 of 7
This thread is locked. New replies are disabled.
15 Aug 2007, 22:11
#1
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Posts:
1,349
Plugin Contributions:
0

Template override problem

Hi
I followed these steps from tutorial for creating a new template

https://www.zen-cart.com/tutorials/index.php?article=142

Open includes/templates/ and create a new folder. You can call it anything you like, though it is best not to make it too long and to use underscores instead of spaces. We will call it /CUSTOM here, so everywhere we write /CUSTOM from now on, you should replace it with your own folder name.

Create an empty folder inside your new template directory and call it images so you should have includes/templates/CUSTOM/images/.

Next, copy the includes/templates/template_default/css directory and place the folder and its files in your new includes/templates/CUSTOM/ folder.

You can also create the following empty folders inside your new template directory:

/common
/sideboxes
/templates

Then you copy the file called includes/templates/template_default/template_info.php, and put it inside includes/templates/CUSTOM/. Next, open includes/templates/CUSTOM/template_info.php in your text editor. Change the information below between each set of single quotes to suit your new template


I now went to admin and select the new template
What I now see on my cart is that although it shows all the products, but I dont see any sideboxes on the left
Categories, New Products, Manufactures, Reviews, Information, More Information etc
I was under the impression that overrides work only when there is a file to be changed
Can someone help me with whats happening here or did I do something wrong
Thanks
15 Aug 2007, 22:15
#2
tshooters avatar

tshooters

Totally Zenned

Join Date:
Dec 2005
Posts:
1,037
Plugin Contributions:
2

Re: Template override problem

Now you need to go to the Admin/Tools/Layout Boxes Controller and hit the
reset button at the bottom of the page.

Or...maybe the left column is turned off in Admin/Configuration/Layout Settings?
15 Aug 2007, 22:15
#3
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Posts:
1,349
Plugin Contributions:
0

Re: Template override problem

Yeah thanks mate
Just figured it out!! :)
15 Aug 2007, 22:20
#4
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Posts:
1,349
Plugin Contributions:
0

Re: Template override problem

One quick question,
If I now choose the default template and then again choose the custom template, do I again need to select Layout Boxes Controller?
Thanks
15 Aug 2007, 22:25
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Template override problem

superprg:

One quick question,
If I now choose the default template and then again choose the custom template, do I again need to select Layout Boxes Controller?
Thanks


Try it and see ... you'll see that the answer is "no"
15 Aug 2007, 22:26
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Template override problem

superprg:

Hi
I followed these steps from tutorial for creating a new template

https://www.zen-cart.com/tutorials/index.php?article=142


I now went to admin and select the new template
What I now see on my cart is that although it shows all the products, but I dont see any sideboxes on the left
Categories, New Products, Manufactures, Reviews, Information, More Information etc
I was under the impression that overrides work only when there is a file to be changed
Can someone help me with whats happening here or did I do something wrong
Thanks

TShooters:

Now you need to go to the Admin/Tools/Layout Boxes Controller and hit the
reset button at the bottom of the page.

Or...maybe the left column is turned off in Admin/Configuration/Layout Settings?


superprg:

Yeah thanks mate
Just figured it out!! :)



You'll also see that the end of that FAQ tutorial you quoted already DOES explain the need to set the layout boxes:
Open your Admin panel and navigate to tools -> template selection. Click the Edit button, then choose CUSTOM from the dropdown menu and click the Update button. Now, navigate to tools -> layout boxes controller and at the bottom of the page click the Reset button.
15 Aug 2007, 22:39
#7
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Posts:
1,349
Plugin Contributions:
0

Re: Template override problem


You'll also see that the end of that FAQ tutorial you quoted already DOES explain the need to set the layout boxes:

Right, sorry for having overlooked that!