Forums / Templates, Stylesheets, Page Layout / How many Templates can I have?

How many Templates can I have?

Locked

Views: 1,072

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
26 May 2010, 8:40 PM
#1
forum5 avatar

forum5

Zen Follower

Join Date:
Jul 2006
Location:
Louisiana
Posts:
147
Plugin Contributions:
0

How many Templates can I have?

I am running Zen-Cart 1.3.9c

Is there a limit to the number of templates that can be listed under Includes/templates? Root/store/admin/template_select.php hangs.

I added several templates to see what they looked like. Now in the ZenCart\Admin, under <Tools>, <Template Selection> the software hangs on a white screen. I can not see the templates listed and can not select or change a template.

This is on a test site so I can strip it all out and start over but, did I inadvertently change something else and need to go looking for it or is there a limit to the number of templates? :(

26 May 2010, 8:42 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How many Templates can I have?

What templates are these, and where did you get them?

20 years a Zencart User

26 May 2010, 8:59 PM
#3
forum5 avatar

forum5

Zen Follower

Join Date:
Jul 2006
Location:
Louisiana
Posts:
147
Plugin Contributions:
0

Re: How many Templates can I have?

schoolboy:

What templates are these, and where did you get them?

classic..................Zen-Cart site
cork_board...........Zen-Cart site
forest_path..........Zen-Cart site
gold......................Built from scratch, it worked on another site.
gold_passion.......Zen-Cart site
rustic....................Zen-Cart site
simple_zen...........Zen-Cart site
sophyblue.............Zen-Cart site modified
springloader.........modified sophyblue Changed to gold colors
template_default..Zen-Cart site
wallet...................Zen-Cart site
wood_ebony.........Built from scratch. it worked on another site

26 May 2010, 9:18 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How many Templates can I have?

It's likely that one of the template_info.php files is "duffy", or some other php file... but honestly, what you are doing is pointless.

You can only ever use ONE template at a time, so don't clog up the server with superfluous code.

20 years a Zencart User

26 May 2010, 9:48 PM
#5
forum5 avatar

forum5

Zen Follower

Join Date:
Jul 2006
Location:
Louisiana
Posts:
147
Plugin Contributions:
0

Re: How many Templates can I have?

schoolboy:

... but honestly, what you are doing is pointless.

You can only ever use ONE template at a time, so don't clog up the server with superfluous code.

Thanks.

27 May 2010, 9:18 AM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: How many Templates can I have?

schoolboy:

You can only ever use ONE template at a time, so don't clog up the server with superfluous code.

I'll respectfully disagree. Disk space is cheap, and many sites use different templates as an easy way to change the look of the site on holidays and for special promotions.

27 May 2010, 9:36 AM
#7
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How many Templates can I have?

yes steve... good point... but again, you don't need 20,000 templates lying dormant.

On the many sites we manage, we do have (on some of them) "alternative" templates (or components of templates) that we store on LOCAL machines.

In one case - a client who sells greeting cards and other "event-specific" items - we have just set up a range of different template images. These include the header, sidebox headers and backgrounds, body backgrounds, centre column backgrounds and header backgrounds... etc

So, in their custom template folder, we have the following:

templates/CUSTOM/images (for general every-day use)
templates/CUSTOM/images_christmas
templates/CUSTOM/images_easter
templates/CUSTOM/images_mothersday
templates/CUSTOM/images_thanksgiving
templates/CUSTOM/images_newyear
templates/CUSTOM/images_halloween

And all we do is SUSPEND the main image folder:
templates/CUSTOM/images
to
templates/CUSTOM/images_general

then rename the appropriate event, say at "christmas time"
templates/CUSTOM/images_christmas
to
templates/CUSTOM/images

far easier and more efficient than switching to a completely different template.

Not that this works for everyone, but it is so simple to invoke in this case.

20 years a Zencart User

27 May 2010, 7:21 PM
#8
forum5 avatar

forum5

Zen Follower

Join Date:
Jul 2006
Location:
Louisiana
Posts:
147
Plugin Contributions:
0

Re: How many Templates can I have?

stevesh:

I'll respectfully disagree. Disk space is cheap, and many sites use different templates as an easy way to change the look of the site on holidays and for special promotions.

Thanks for chiming in Steve. I was going to let it lay. I too disagreed but did not want to go into it at that time.

The fact of the matter is that I have a client that lives far away and wants to see a hand full of templates in action on my test site before making a decision on the style he wants to create from $cratch. (not 20,000 templates laying dormant)

Without going into geek alternative suggestions such as which is bigger, smaller, better, bolder, cheaper, easier, harder, best approach with disk space, Zen-Cart or programming in PHP, I say this: My client ask if it could be done. My client is paying the bill. My client wants it done. I want it done. My client is right. I tried to do it.

I thank schoolboy for trying to answering my initial request and I will study his custom-image solution for a later project. Right now I don't need custom image solutions for seasonal changes. I need to show the client a hand full of different 'layouts', custom designs, and color choices then move on.

One of the great things we all have in common - differences of opinion. That's what leads to great creativity.

BTW Is there a limit to the number of templates that can be listed under Includes/templates? HA!

27 May 2010, 7:29 PM
#9
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: How many Templates can I have?

Is there a limit to the number of templates that can be listed under Includes/templates?

There is no limit o the number of templates you can have in /includes/templates. If you have broken store, you have broken the code somewhere.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

27 May 2010, 8:08 PM
#10
forum5 avatar

forum5

Zen Follower

Join Date:
Jul 2006
Location:
Louisiana
Posts:
147
Plugin Contributions:
0

Re: How many Templates can I have?

Kim:

There is no limit o the number of templates you can have in /includes/templates. If you have broken store, you have broken the code somewhere.

Thanks Kim. I figured as much. I'll strip everything out and just load one template at a time until it bombs again. Then I'll know.

Mike

27 May 2010, 8:16 PM
#11
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: How many Templates can I have?

:thumbsup:

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

27 May 2010, 9:03 PM
#12
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How many Templates can I have?

Forum5:

My client is paying the bill. My client wants it done. I want it done. My client is right. I tried to do it.

Now had I know that it was a CLIENT who wanted to see a whole range of options my answer would have been markedly different... I know too well the exasperating requests they tend to make... like "oh but look how simple it is!"... as they point to a sophisticated options selector driven by 10,000 lines of ajax and java... "so why are you going to charge me so much?"

20 years a Zencart User