Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Adding Page 2 to information box

Adding Page 2 to information box

Views: 782

Results 1 to 5 of 5
10 Sep 2011, 5:50 AM
#1
ejvigil avatar

ejvigil

New Zenner

Join Date:
Apr 2011
Posts:
13
Plugin Contributions:
0

Adding Page 2 to information box

I've searched high and low and tried to find a solution but can't. I need to add Page 2 (already renamed it to images) into my information box. I already made sure that the Define Page Status for page_2 = 1. It shows up in the site map so I know the link is live. Not sure how else to add the link to this information box.

Suggestions or links to do so appreciated.

10 Sep 2011, 6:03 AM
#2
kobra avatar

kobra

Black Belt

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

Re: Adding Page 2 to information box

Look at includes/modules/sideboxes/more_information.php

Find

  if (DEFINE_PAGE_2_STATUS <= 1) {
    $more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>';
  }

copy that and insert into
includes/modules/sideboxes/information.php
editing out "more_"

10 Sep 2011, 6:14 AM
#3
ejvigil avatar

ejvigil

New Zenner

Join Date:
Apr 2011
Posts:
13
Plugin Contributions:
0

Re: Adding Page 2 to information box

Awesome! It works.

Thanks for helping me not stay up all night over something so simple.

3 May 2012, 4:57 PM
#4
4teddy4 avatar

4teddy4

New Zenner

Join Date:
May 2012
Posts:
1
Plugin Contributions:
0

Re: Adding Page 2 to information box

I am totally new to zencart I want to add new page which needed a form in it. Can somebody help? Thanks

4 May 2012, 8:44 AM
#5
imranulh avatar

imranulh

New Zenner

Join Date:
Jun 2005
Location:
Dhaka, Bangladesh
Posts:
21
Plugin Contributions:
2

Re: Adding Page 2 to information box

4teddy4:

I am totally new to zencart I want to add new page which needed a form in it. Can somebody help? Thanks

What does the form do?

  • If it is a plain html form and do not come back to zencart after you submit it, you can create an EZ-page from Admin -> Tools -> EZ-pages.
  • If you need to write custom php code to handle the submitted form, you need to add a new page to zencart and ahndle everything manually. In that case, check my post about basic zencart code structure.

http://www.imranulhoque.com/zencart/zencart-basic-code-structure/