Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Creating template from existing site.

Creating template from existing site.

Views: 901

Results 1 to 7 of 7
4 Jan 2016, 4:57 AM
#1
ember avatar

ember

New Zenner

Join Date:
Jan 2016
Location:
Palmdale, CA
Posts:
36
Plugin Contributions:
0

Creating template from existing site.

Unfortunately I did not create a custom template prior to starting to set up my site. I almost have it the way I want, but realizing now I should have done a custom template I tried setting one up. I did the basics (link below) but when I switch over it does not look the same as I had it. What other basic files do I need to copy over or amend? I did not add any special mods yet.
Thank you in advance.

I followed this
https://www.zen-cart.com/content.php?180-how-do-i-create-a-new-custom-template

4 Jan 2016, 4:59 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Creating template from existing site.

A link to what your site is will assist
The page you are attempting to replicate and your ZenCart's main page

4 Jan 2016, 5:06 AM
#3
ember avatar

ember

New Zenner

Join Date:
Jan 2016
Location:
Palmdale, CA
Posts:
36
Plugin Contributions:
0

Re: Creating template from existing site.

It is on the same site, I have to switch over to the other template in order to see both.
There is still more work I need to do (a few issues I can't seem to figure out) but know I should get a custom template to where it is now before I continue working on it.

This is the still in progress site. http://www.billysherwoodhq.com/SherwoodStore

4 Jan 2016, 5:08 AM
#4
ember avatar

ember

New Zenner

Join Date:
Jan 2016
Location:
Palmdale, CA
Posts:
36
Plugin Contributions:
0

Re: Creating template from existing site.

Still a list of things I need to do on it.

4 Jan 2016, 10:47 PM
#6
ember avatar

ember

New Zenner

Join Date:
Jan 2016
Location:
Palmdale, CA
Posts:
36
Plugin Contributions:
0

Re: Creating template from existing site.

Thank you Kobra! Something to consider.

6 Jan 2016, 10:38 PM
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Creating template from existing site.

Trying to follow along with this discussion. In part I think I might understand and can help, but then I don't seem to fully understand. If I've got this right let me know:

You setup a ZC site. You got excited and began changing things about how it is displayed to the point of almost completely the way you want it.
You then realized that, hey I should have been doing this stuff as a custom template instead of modifying all these things.
Now, you want to gather all of your "changes" into your "custom" template so that it all is grouped like it probably should have been to begin with...

Am I on the right track?

If so, the solution is rather straght forward, but could involve some time... If you never created some form of custom template folder, I would suggest doing that frst for all expected override folders in all locations. (There's a plugin that describes the template overrides.) Then pretty much everything that was in the classic folder(s) for all of those locations should be copied to the equivalent custom folder.
Then take a look/compare the changes made to your overrideable files and copy those files into the template override unless the file already exists (css is a little different, but to be addressed momentarily). If the file exists in the template override directory, then have to evaluate the contents/changes made. Technically if the "page" applicable to the file has been right all along, the changed file is probably useless because it isn't accessed.

Then need to look at what files are extra in the non-template override folder(s) to see if the extra file(s) should be put into the template directory at least for some consistency...

With all that done, then go back to the classic directory(ies) and restore them to the original "blank" state. Restore the overrideable files back to their original zc design. (Again though the css files are a bit different). Now at least all of the template files are in one place, except for the css... The reason to save the css files for discussion is because they do "all" load, but in a sequence, and the last one to set something wins... So, couple of ways to go about things depending on the css changes. Again though, compare the original file(s) to the modified version all discussing the template_defaults folder... Any "addition" made in the current file can be added to the top of your new template file in/under the same format. Anything that was taken away sort of has to be addressed/readdressed in the new template file... So either have to know what the "default" condition for that value is so that it can be "force" entered to override the default template, or hazard to modify the default template css and "live" with whatever it does to future templates...

Work for ya'? :)