Forums / Addon Sideboxes / template switch addon

template switch addon

Views: 45,477

Results 41 to 60 of 62
16 Sep 2010, 6:07 PM
#41
kobra avatar

kobra

Black Belt

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

template switch addon

countrycharm:

Do i need to upload each template that I plan on using to switch
Yes they have to be there to switch to

Zen-Venom Get Bitten

16 Sep 2010, 6:14 PM
#42
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: template switch addon

kobra:

Yes they have to be there to switch to
So in other words I have to modify all templates with my logo meta tag info, what add on I use and so on to get this to work. Ummm If this is the case sounds like a lot of work just to be able to switch templates. Is there an easier way Kobra?

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

16 Sep 2010, 6:47 PM
#43
kobra avatar

kobra

Black Belt

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

Re: template switch addon

countrycharm:

So in other words I have to modify all templates with my logo meta tag info,
Template switch is not meant for an operating site....
It is more for a demo site such as
http://(sorry, site offline)/

Zen-Venom Get Bitten

16 Sep 2010, 8:05 PM
#44
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: template switch addon

kobra:

Template switch is not meant for an operating site....
It is more for a demo site such as
http://(sorry, site offline)/

Thank You for the info. The reason I even considered was some of my customer said it would be nice choose there on template while shopping. I think I will have to ponder on this for a while.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

16 Sep 2010, 9:30 PM
#45
kobra avatar

kobra

Black Belt

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

Re: template switch addon

countrycharm:

some of my customer said it would be nice choose there on template while shopping
How would they even know about this??

Look at the "bigs" amazom, walmart, etc
There is no template selection...
They have an image they want published and that is what you see

Zen-Venom Get Bitten

17 Sep 2010, 2:47 AM
#46
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: template switch addon

kobra:

How would they even know about this??

Look at the "bigs" amazom, walmart, etc
There is no template selection...
They have an image they want published and that is what you see
Good point Kobra. I have a section about web site improvements and a few customer mention it. I don't know how they know about it. Thank you again

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

7 Jan 2011, 9:13 PM
#47
kyrell avatar

kyrell

New Zenner

Join Date:
Mar 2009
Location:
Evanston, Illinois, United States
Posts:
1
Plugin Contributions:
0

Re: template switch addon

This is a great mod, I have used it on earlier versions of zencart, can not seem to get it to work with the latest version, is there an update or known fix I can implement to get it to work?

Roy
DizzBee.com:smartalec:

13 Jan 2011, 7:21 AM
#48
hugo13 avatar

hugo13

Zen Follower

Join Date:
Apr 2004
Location:
vienna
Posts:
176
Plugin Contributions:
4

Re: template switch addon

kyrell:

This is a great mod, I have used it on earlier versions of zencart, can not seem to get it to work with the latest version, is there an update or known fix I can implement to get it to work?
thanks

no need for update, works with 1.3.9.

does this work ?
http://YourServer.COM/index.php?main_page=index&template_switch_id=classic (YOUR TEMPLATE)

if yes, sidebox activated ?

salute
rainer

14 Jan 2011, 4:20 PM
#49
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: template switch addon

I have one question. How does the site know what template is supposed to be the first one? Even if I choose one of the new templates as the default template, the visitor sees some version of the classic template that's left on the site. This doesn't matter if I put it in the templates.txt file or not. I want one of the other templates to be first viewed and do not want to name it classic for heavens sake.

I'm on 1.3.9h so it may be working differently on that version that the way it's intended.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

1 Feb 2011, 5:55 AM
#50
gffb avatar

gffb

New Zenner

Join Date:
Jan 2011
Posts:
7
Plugin Contributions:
0

Re: template switch addon

Hi there,

I am using the latest version of Zen 1.3.9h

I have 5 templates installed
Patriot2
Gloss Black
Classic Contemporary Green
tm001
Apparel Boutique

I have made sure the template sidebox is in each template folder but all that has happened is that my site has now gone back to the default template and no matter what I do I cant change it to any other template.

Can someone please advise me on how to get this issue resolved.

One question is should the txt file contant the template folder names or just the names of the templates.

31 Mar 2011, 11:29 AM
#51
steveyork136 avatar

steveyork136

New Zenner

Join Date:
Nov 2005
Posts:
84
Plugin Contributions:
0

Re: template switch addon

Hi all

Kobra, can I ask you about this comment "Template switch is not meant for an operating site...."

apart from the extra coding required for building the template is there any technical reasons this could cause problems, eg checkout, creating an account

the reason I ask is I was thinking this maybe another option for building a mobile version of a zen site.

if a mobile browser is detected you could offer the user a "mobile" optimised template of the site, while it might not be a perfect solution is seems simpler than some of the other coding methods I've look at!

6 May 2011, 9:05 PM
#52
thedjphat avatar

thedjphat

Zen Follower

Join Date:
Nov 2010
Location:
Vancouver, BC
Posts:
108
Plugin Contributions:
0

Re: template switch addon

I've successfully installed this addon at http://zen.thedjphat.com

My question is this - can I prevent the switch from showing the classic template?

7 May 2011, 12:24 AM
#53
kobra avatar

kobra

Black Belt

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

Re: template switch addon

can I prevent the switch from showing the classic template?
What is in your template.txt file??? Only thpse listed and installed can be switched

NOTE: This is NOT recommended for a live operating site....Ony a development, showcase etc

Zen-Venom Get Bitten

8 May 2011, 10:58 PM
#54
thedjphat avatar

thedjphat

Zen Follower

Join Date:
Nov 2010
Location:
Vancouver, BC
Posts:
108
Plugin Contributions:
0

Re: template switch addon

What I actually mean is - when no cookie is present, I would prefer the site to select the zj_black template, over the classic. I tried removing the "classic" entry, but with no cookie, it seems to default to this.


classic
zj_black
zj_orange
zj_silver
aberdeen_neutral

9 May 2011, 2:07 AM
#55
kobra avatar

kobra

Black Belt

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

Re: template switch addon

thedjphat,

Set the template selected in the admin to zj_black and remove from your templates.txt file classic

zj_black
zj_orange
zj_silver
aberdeen_neutral

Zen-Venom Get Bitten

9 May 2011, 5:03 AM
#56
thedjphat avatar

thedjphat

Zen Follower

Join Date:
Nov 2010
Location:
Vancouver, BC
Posts:
108
Plugin Contributions:
0

Re: template switch addon

I'm afraid that didn't work - after removing "classic" from the text, setting the default to zj black, and clearing the cookies, I still wind up with the classic template first. :censored:

I'm not that concerned about it anymore, as I've made some modifications to 'classic' to showcase the work.

Thanks for the great mod! :D

11 Oct 2011, 5:09 AM
#57
fez_o_joe avatar

fez_o_joe

Zen Follower

Join Date:
Sep 2009
Location:
California
Posts:
141
Plugin Contributions:
0

Re: template switch addon

kobra:

NOTE: This is NOT recommended for a live operating site....Only a development, showcase etc

OK... but what "IF" it was to be on a live site? I have a rather unique idea for one but only if the visitor can switch and still make a purchase.

Sure... it'll just be funny for them - but I think it'd catch on. (at least for my site) What I'd really like to do is - depending on what URL they come in on... switch to that template. :)

Just as a teaser - the sidebox would be labeled, "What are you ?" and the pull-down would be 'Human' or 'Zombie' - since Zombie's need their emergency supplies as well. :shocking:

Thanks.

12 Oct 2014, 5:07 PM
#59
nesum18 avatar

nesum18

New Zenner

Join Date:
Jun 2012
Posts:
50
Plugin Contributions:
0

Re: template switch addon

Hello,
Is this compatible for v1.5 or above?