Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / disable sideboxes in shopping basket page?

disable sideboxes in shopping basket page?

Views: 985

Results 1 to 7 of 7
29 Jan 2009, 9:47 PM
#1
lieven23 avatar

lieven23

Zen Follower

Join Date:
Aug 2008
Posts:
340
Plugin Contributions:
0

disable sideboxes in shopping basket page?

I wonder if it's possible to disable the sideboxes for the shopping baskets page?
It is maybe a good idea so not to distract potential customers in that stage of the buying process?

Also if it is possible to disable sideboxes in the log in page?

29 Jan 2009, 10:04 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: disable sideboxes in shopping basket page?

Yes. If you make a copy of the common/tpl_main_page.php file in your template, then open it up, you'll find a big comment near the top telling you how to do this.

29 Jan 2009, 11:14 PM
#3
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: disable sideboxes in shopping basket page?

Out of curiousity -- and being always willing to learn new things -- I decided to look at that file and those instructions. The first thing I noticed was the large number of <br /> tags in the comment section at the top of the file. Since those instructions tell you to uncomment parts of the code to do various things, if you don't notice and remove the <br /> tags, I think you'll get some rather odd results.

But more skillful coders than I will have to judge if that's true or not. Kuroi?

Rob

30 Jan 2009, 10:22 AM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: disable sideboxes in shopping basket page?

Yes, they likely would cause problems. The line break tags are there for applications (such as phpDoc) that automate the generation of documentation for apps by "reading" header data.

The suggestion that lines be uncommented could mislead people a little. Merely removing the "" from the beginning of a line won't uncomment it. Instead it needs to be copied, with the "" or the "<br />" tag to a position lower in the file where the executable statements are located.

30 Jan 2009, 1:07 PM
#5
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: disable sideboxes in shopping basket page?

Thanks for that.

(I assume you mean "... copied, with the "*" or the "<br />" tag removed to a position ...")

Rob

5 Jan 2011, 7:47 PM
#6
finlander avatar

finlander

Zen Follower

Join Date:
Oct 2010
Location:
Idaho
Posts:
293
Plugin Contributions:
0

Re: disable sideboxes in shopping basket page?

The instructions in that file are terrible.

For example, it's very confusing to tell people, essentially, that

"you can make changes here, i.e., tpl_main_page.php. that will control whether page elements (such as sideboxes) appear on certain pages"

and then, at essentially the same time, say

"to make customizations to certain pages create a directory /templates/your_template_dir/pagename and put this file in there."

I read that, and I'm sitting there frozen, wondering if I should make my page-specific change by overriding tpl_main_page.php, as the instructions say I **can **do, **or **if I should make my page-specific change by doing the create-pagename-directory thing, which the instructions also say I **can **do.

Also, as kuroi mentioned, **where **down below should the code be dropped, for example, to disable certain page elements on certain pages. I'm left with dropping it somewhere and seeing if it works -- that's not a very good way of 'instructing' a user.

If I've misinterpreted something in this rant, then blame the crumby instructions for that page. My interepretation is based on them.

5 Jan 2011, 7:52 PM
#7
finlander avatar

finlander

Zen Follower

Join Date:
Oct 2010
Location:
Idaho
Posts:
293
Plugin Contributions:
0

Re: disable sideboxes in shopping basket page?

here's another one:

  • to turn off the header and/or footer uncomment the lines below<br />
  • Note: header can be disabled in the tpl_header.php<br />
  • Note: footer can be disabled in the tpl_footer.php<br />

Well **which **is it?! Do I uncomment the 'lines below' to perform this action, or do I got to a completely different file and do something there to perform this action?

Good grief.