Forums / General Questions / Changing templates wiped out my sideboxes?

Changing templates wiped out my sideboxes?

Locked

Views: 683

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
8 Apr 2010, 10:49 PM
#1
mzimmers avatar

mzimmers

Zen Follower

Join Date:
May 2008
Posts:
453
Plugin Contributions:
0

Changing templates wiped out my sideboxes?

Hi -

I decided to make a copy of the template I was using, since I've modified the original so much, it really doesn't look or feel the same.

I copied the six directory structures of the old template to new names, and it was mostly successful. My sidebox settings, though were wiped out. No big deal; I went back into the Layout Boxes Controller and turned them back on.

Now, however, the content of those boxes (like the privacy notice, for example) seems to have been wiped clean. I guess I could change templates, go in and copy out the contents and paste them into my new one, but I'm curious: why did this happen, and is there a quicker/cleaner to get my content back?

Thanks.

8 Apr 2010, 10:52 PM
#2
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Changing templates wiped out my sideboxes?

You just need to switch them all on again in Tools > Layout Boxes Controller

By default no sideboxes show

8 Apr 2010, 11:26 PM
#3
mzimmers avatar

mzimmers

Zen Follower

Join Date:
May 2008
Posts:
453
Plugin Contributions:
0

Re: Changing templates wiped out my sideboxes?

Yes, I understand that, but the fact that the contents were wiped clean was a bit of a mystery. Upon further review, though, it appears that the files that I thought I'd modified actually weren't. This is really strange, as the text in pages like the privacy notice are definitely changed; I'm not sure what to make of it.

Anyway, I just went ahead and cut-and-pasted the contents. I just hope whatever happened doesn't recur.

Thanks for the reply.

9 Apr 2010, 1:44 AM
#4
tshooters avatar

tshooters

Totally Zenned

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

Re: Changing templates wiped out my sideboxes?

Whenever you change templates, you have to go to Admin/Tools/Layout Boxes Controller and click the reset button (bottom of the page) to turn them on. There's an add-on here that saves your sidebox settings: http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=260

Are you using the override system? If you customized the define pages, and copied to your override folders in includes/languages/english/html_includes/your (previous) custom template, they should still be there. Just make a folder for your new template and copy the define pages (from your previous template) into it.

If you did the above, check and make sure all instances of your template are named the exact same.

Hope this helps!

9 Apr 2010, 1:47 AM
#5
mzimmers avatar

mzimmers

Zen Follower

Join Date:
May 2008
Posts:
453
Plugin Contributions:
0

Re: Changing templates wiped out my sideboxes?

Thanks, TShooters. I do have a suspicion that I somehow accidently overwrote those files with the vanilla ZC versions. I just don't know how the shop continued to display the modified contents if that happened.

In any event, it was probably cockpit error, and it's fixed now.

I'll look at the add-on you mention; thanks for the reply.

9 Apr 2010, 1:54 AM
#6
tshooters avatar

tshooters

Totally Zenned

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

Re: Changing templates wiped out my sideboxes?

Something you could do next time, if you're not going to be changing templates often, is just rename those (language) folders to your new template name.