Zen Cart Logo
Forums / Basic Configuration / copied template and sideboxes dissipeared

copied template and sideboxes dissipeared

Locked

Views: 1,457

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
26 Sep 2008, 10:23 AM
#1
dingfelder avatar

dingfelder

New Zenner

Join Date:
Sep 2008
Location:
New Zealand
Posts:
15
Plugin Contributions:
0

copied template and sideboxes dissipeared

I made a copy of a template and then switched to it, and the left side modules all disappeared.

what might cause such a behavior?

the site is:
http://beakandclaw.com/cart/

26 Sep 2008, 10:36 AM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: copied template and sideboxes dissipeared

Any number of things can cause the non-display of the column contents. Without having access to your core code files, it is really difficult to ascertain the cause.

The remedy is probably time-consuming, and only you can do this.

Suggest you do this:-

Get a copy of WINMERGE - the file comparison tool.

Use WINMERGE to compare the files of your new template, with the files of a standard template.

Winmerge will alert you to files that have the same name, but differ in content.

You will have to look at these comparisons, and where there are omissions of code or blocks of code, determine whether you need to include such code in your new template, and then edit accordingly.

Winmerge also alerts you to files that exist in one directory, but not in its corresponding comparative directory (there may be files that you have neglected to upload).

Other people may have further solutions, but you may be better off reverting to your original template while you find the answers.

26 Sep 2008, 10:47 AM
#3
dingfelder avatar

dingfelder

New Zenner

Join Date:
Sep 2008
Location:
New Zealand
Posts:
15
Plugin Contributions:
0

Re: copied template and sideboxes dissipeared

diffing is no problem for me

The only question is what to diff :)

Is it only the files from includes/templates/my_template/* ?
or are there other directories that I need to diff as well?

26 Sep 2008, 11:02 AM
#4
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: copied template and sideboxes dissipeared

Did you rename template?
If so, when installing NEW template, you have
to reactivate sideboxes via admin/tools/layout boxes controller
:smile:

26 Sep 2008, 11:23 AM
#5
dingfelder avatar

dingfelder

New Zenner

Join Date:
Sep 2008
Location:
New Zealand
Posts:
15
Plugin Contributions:
0

Re: copied template and sideboxes dissipeared

much thank, that is exactly what I needed :smile:

you can see the work in progress at http://www.beakandclaw.com/cart

Thanks for the help !

26 Sep 2008, 11:27 AM
#6
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: copied template and sideboxes dissipeared

dingfelder:

much thank, that is exactly what I needed :smile:

you can see the work in progress at http://www.beakandclaw.com/cart

Thanks for the help !
Pleased to hear problem sorted
Well done !!
:clap:

9 Apr 2010, 5:21 PM
#7
donothing avatar

donothing

New Zenner

Join Date:
Nov 2009
Posts:
11
Plugin Contributions:
0

Re: copied template and sideboxes dissipeared

I also had my sideboxes disappear when I renamed my template.

I moved the admin settings from the old name to the new by editing the mysql.

If you are are familiar with mysql syntax you can hand edit a mysqldump,
e.g.:
```
mysqldump -u[user] -p[password] [zencart database name] > dump_with_renamed_template_dirs.txt


For me at least, only the  `layout_boxes` table was dependent on the template
name.
So in your favourite text editor you can search for the (really long)
line starting:
	```
INSERT INTO `layout_boxes` VALUES 

The line contains values for both old_template_name and new_template_name.
Delete all the values referring to new_template_name and rename all
instances of old_template_name to new_template_name.

Clean up the commas and the end semicolon.

Save the edited file.

Then load the new database data:
mysql -u[user] -p[password] [zencart database name] < edited_mysql_dump.txt

It worked for me!
Use at your own risk.