Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Left side sidebox on, but no right side sidebox

Left side sidebox on, but no right side sidebox

Views: 1,194

Results 1 to 11 of 11
17 Feb 2011, 6:40 PM
#1
maynards avatar

maynards

Zen Follower

Join Date:
Feb 2010
Location:
Minnesota
Posts:
392
Plugin Contributions:
0

Left side sidebox on, but no right side sidebox

Trying to build a new site using the 139h version of zencart. My question is why on my custom template the sideboxes work on the left side but not on the right.

When I use the Classic Template both sides will work.

Layout box controller is set to Right.
In Admin-Configuration/Column Right Status is set to Global-1

Thanks in advance for any help.

17 Feb 2011, 6:57 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Left side sidebox on, but no right side sidebox

Let's see your site. There are some templates built for one sidebar, and some of those may be hard-coded so the other one cannot be enabled.

17 Feb 2011, 7:00 PM
#3
maynards avatar

maynards

Zen Follower

Join Date:
Feb 2010
Location:
Minnesota
Posts:
392
Plugin Contributions:
0

Re: Left side sidebox on, but no right side sidebox

It's kind of mess rite now but here it is.

http://maynar.fatcow.com/new_store/

17 Feb 2011, 7:42 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Left side sidebox on, but no right side sidebox

You are getting some error that is cutting off the page output after the reviews sidebox. Is there supposed to be another sidebox after that on the left?
What happens if you move the reviews sidebox higher in the left column, or turn it off completely?

What happens if you disable the left column?

17 Feb 2011, 7:55 PM
#5
maynards avatar

maynards

Zen Follower

Join Date:
Feb 2010
Location:
Minnesota
Posts:
392
Plugin Contributions:
0

Re: Left side sidebox on, but no right side sidebox

If I disable the left, nothing will show there.
I tried moving boxes to the right that are on the left now but when doing so they vanish.

17 Feb 2011, 10:19 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Left side sidebox on, but no right side sidebox

The output cuts off before the left sidebar is finished, so the error has to be in there somehow.

17 Feb 2011, 11:20 PM
#7
maynards avatar

maynards

Zen Follower

Join Date:
Feb 2010
Location:
Minnesota
Posts:
392
Plugin Contributions:
0

Re: Left side sidebox on, but no right side sidebox

The output cuts off before the left sidebar is finished????
Sorry but I do not know what you mean by this. Where does the error have to be..Folder? Files?

Can you give me somewhere to start looking.

Would you recommend me to just do a fresh install and start over.

17 Feb 2011, 11:38 PM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Left side sidebox on, but no right side sidebox

The last things the left sidebar outputs, after the final sidebox, should be </div></td>, and those are missing. They are in tpl_main_page.php, so the error has to happen before control returns from /includes/modules/your_template/column_left.php.

Did you try setting Configuration > Layout Settings > Column Left status - Global to 0? That would remove column_left.php from the execution stream completely.

17 Feb 2011, 11:50 PM
#9
maynards avatar

maynards

Zen Follower

Join Date:
Feb 2010
Location:
Minnesota
Posts:
392
Plugin Contributions:
0

Re: Left side sidebox on, but no right side sidebox

I set the Layout Settings > Column Left status - Global to 0 and now the right side will work but of course nothing on the left side..
What does that mean? I am not very versed on many things in this software.

I will also go and check out those files that you have stated. Thank you so much for sending me some directions. I appreciate it.

18 Feb 2011, 12:16 AM
#10
maynards avatar

maynards

Zen Follower

Join Date:
Feb 2010
Location:
Minnesota
Posts:
392
Plugin Contributions:
0

Re: Left side sidebox on, but no right side sidebox

I compared the file tpl_main_page.php from my old site from version 1.3.8a to the new site version 139h using winmerge. The only difference is at the bottom.

<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-15686981-1"); pageTracker._trackPageview(); } catch(err) {}</script>

Should I copy this over to the new tpl_main_page.php?

18 Feb 2011, 1:18 AM
#11
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Left side sidebox on, but no right side sidebox

That is only the Google Analytics code. You can copy it if you want, but it is not relevant to the question at hand.

Since the rest of the page works when column_left.php is not called, the problem must be in that file or one of its subsidiaries. I asked about that originally, and you apparently assumed it would just turn off the left without trying it.
You didn't actually answer, was there supposed to be another sidebox below reviews originally? What happens if you put reviews higher in the right sidebar? What happens if you reactivate the left sidebar and move reviews higher?