Zen Cart Logo
Forums / Basic Configuration / Page 2, Page 3 etc.

Page 2, Page 3 etc.

Locked

Views: 2,302

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
4 May 2007, 9:39 PM
#1
sbross avatar

sbross

New Zenner

Join Date:
Feb 2007
Posts:
64
Plugin Contributions:
0

Page 2, Page 3 etc.

Early on in my Zen Cart career I came upon a thread that told me how to shut off the Page 1, Page 2 in the information sidebox. I know how to do it in the admin section, but I think I commented out the lines of code somewhere. Can someone send me in the right direction to correct my mistake. I will forever use admin to turn these on and off.

Thanks,

Scott

4 May 2007, 11:59 PM
#2
kobra avatar

kobra

Black Belt

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

Re: Page 2, Page 3 etc.

Probably in your english.php file

5 May 2007, 1:02 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Page 2, Page 3 etc.

You may have actually gone into the file:
/includes/modules/sideboxes/more_information.php

and commented out the lines ...

NOTE: if you were following the templates and overrides ... you will find a copy of this file in your templates and overrides directory:
/includes/modules/sideboxes/your_template_dir/more_information.php

This is what the code looks like for page 2 to run when the Configuration ... Define Page Status for Page 2 is enabled:

  if (DEFINE_PAGE_2_STATUS <= 1) {
    $more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>';
  }
5 May 2007, 1:39 AM
#4
sbross avatar

sbross

New Zenner

Join Date:
Feb 2007
Posts:
64
Plugin Contributions:
0

Re: Page 2, Page 3 etc.

They are active in the define page status under admin. I checked in the locations you suggested and everything looks fine. Not sure what the heck I did.

Scott

5 May 2007, 1:59 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Page 2, Page 3 etc.

You are sure that there aren't comments in front of those lines? You know the //

And you checked both the original file and your overrides directory?

5 May 2007, 2:21 AM
#6
sbross avatar

sbross

New Zenner

Join Date:
Feb 2007
Posts:
64
Plugin Contributions:
0

Re: Page 2, Page 3 etc.

I thought I did, but everywhere I look everything looks fine. I will keep searching and see what I can find.

Scott

5 May 2007, 2:23 AM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Page 2, Page 3 etc.

Go to the Tools ... Developer's Tool Kit ...

In the bottom input box, enter:
DEFINE_PAGE_2_STATUS

Select the Catalog from the dropdown and search ...

What files and paths come up with this constant in it?

5 May 2007, 2:39 AM
#8
sbross avatar

sbross

New Zenner

Join Date:
Feb 2007
Posts:
64
Plugin Contributions:
0

Re: Page 2, Page 3 etc.

Searching 644 files ... for: DEFINE_PAGE_2_STATUS
/home/rockymt4/public_html/includes/modules/sideboxes/more_information.php
Line #16 : if (DEFINE_PAGE_2_STATUS <= 1) {

/home/rockymt4/public_html/includes/templates/template_default/templates/tpl_page_2_default.php
Line #14 : <?php if (DEFINE_PAGE_2_STATUS >= 1 and DEFINE_PAGE_2_STATUS <= 2) { ?>

/home/rockymt4/public_html/includes/templates/template_default/templates/tpl_site_map_default.php
Line #72 : <?php if (DEFINE_PAGE_2_STATUS <= '1') { ?>
Match Lines found: 3

5 May 2007, 2:42 AM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Page 2, Page 3 etc.

And you checked those files and there is nothing commented out ...

And for giggles you did peek in the Configuration ... Page Status ... and Page 2 is turned on?

5 May 2007, 2:48 AM
#10
sbross avatar

sbross

New Zenner

Join Date:
Feb 2007
Posts:
64
Plugin Contributions:
0

Re: Page 2, Page 3 etc.

Everything is set to 1 in the Define Pages Status. I rechecked the files and I don't see any // in front of any of the pages. This is weird. I'm not sure why they don't show up.

Scott

5 May 2007, 2:59 AM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Page 2, Page 3 etc.

Have you an URL to your site that I can peek at? :smile:

5 May 2007, 3:09 AM
#12
sbross avatar

sbross

New Zenner

Join Date:
Feb 2007
Posts:
64
Plugin Contributions:
0

Re: Page 2, Page 3 etc.

We are still adding more product and should go live this weekend.

I have a temporary index.html page until we go live.

http://rockymtnradio.com/index.php

Scott

5 May 2007, 3:12 AM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Page 2, Page 3 etc.

umm ... Scott? Could you go into the Tools ... Layout Box Controller ... and turn on the more_information sidebox? :unsure:

5 May 2007, 3:17 AM
#14
sbross avatar

sbross

New Zenner

Join Date:
Feb 2007
Posts:
64
Plugin Contributions:
0

Re: Page 2, Page 3 etc.

Good thing I wasn't drinking tonight. I thought I had turned that on. I feel like this guy ---->:blink:

Thanks for the help and I bow to your intellect.

Scott

5 May 2007, 3:18 AM
#15
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Page 2, Page 3 etc.

I was afraid after all of the questions and your checking the code that this was going to be the stinger ... :cool:

Glad that you have it back on track now ... :smile: