Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding Pages to the 'Infomation Box'


grant101

Recommended Posts

Posted

Hi,

I did a forum search and came up with a million hits on ' info box'

 

I wan to have seperate pages for postage costs and payment methods.. so i need to make a new 'page' and link it in my 'infomation' box on the lefthand side..

 

Anyone know how to do it.. I use dreamweaver..

 

Is there a good thread on this already?

 

any help greatly appricated..

 

Regards

Grant. :)

Posted
Hi,

I did a forum search and came up with a million hits on ' info box'

 

I wan to have seperate pages for postage costs and payment methods.. so i need to make a new 'page' and link it in my 'infomation' box on the lefthand side..

 

Anyone know how to do it.. I use dreamweaver..

 

Is there a good thread on this already?

 

any help greatly appricated..

 

Regards

Grant. :)

 

Hi Grant

 

rabbitseffort posted this for me on 11/03/06 to add a new page to the info box. I did it, it is easy to follow & it works.

 

Hope it helps.

 

Julie

Step 1:

 

Copy an existing page, say, /shop/conditions.php. Save it with your new file name, say links.php

 

In your new links.php file, look for:

 

 

CODE

$Id: conditions.php,v 1.22 2003/06/05 23:26:22 hpdl Exp $

 

 

And change to:

 

CODE

$Id: links.php,v 1.22 2003/06/05 23:26:22 hpdl Exp $

 

 

Look for:

 

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONDITIONS);

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONDITIONS));

?>

 

 

And change to:

 

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_LINKS);

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_LINKS));

?>

 

And now save the file

---------------------------------------------------------------------------------------------------------------------------

Step 2:

 

Now copy an existing language page, say, /shop/includes/languages/english/conditions.php. Save it with your new file name, say links.php.

 

In your new links.php file, look for:

 

CODE

$Id: conditions.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $

 

 

And change to:

 

CODE

$Id: links.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $

 

Look for:

 

CODE

define('NAVBAR_TITLE', 'Conditions of Use');

define('HEADING_TITLE', 'Conditions of Use');

 

And change to:

 

CODE

define('NAVBAR_TITLE', 'links');

define('HEADING_TITLE', 'links');

 

And now save the file

-----------------------------------------------------------------------------------------------------------------------------

Step 3:

 

Now, open /shop/includes/filenames. Look for:

 

CODE

define('FILENAME_CONDITIONS', 'conditions.php');

 

 

Underneath it, add:

 

CODE

define('FILENAME_LINKS', 'links.php');

 

And now save the file

-----------------------------------------------------------------------------------------------------------------------------

Step 4:

 

Add a link to the 'Information' box, go to /shop/includes/boxes/information.php. Look for:

 

 

'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .

 

 

Right underneath that, add:

 

 

'<a href="' . tep_href_link(FILENAME_LINKS) . '">' . BOX_INFORMATION_LINKS . '</a><br>' .

 

 

 

 

-----------------------------------------------------------------------------------------------------------------------------

Step 5:

 

Then open up, /shop/includes/languages/english.php. Look for:

 

CODE

// information box text in includes/boxes/information.php

define('BOX_HEADING_INFORMATION', 'Information');

define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');

define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');

define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');

define('BOX_INFORMATION_CONTACT', 'Contact Us');

 

 

Add your new define somewhere in there, like so:

 

CODE

// information box text in includes/boxes/information.php

define('BOX_HEADING_INFORMATION', 'Information');

define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');

define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');

define('BOX_INFORMATION_LINKS', 'Links');

define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');

define('BOX_INFORMATION_CONTACT', 'Contact Us');

 

 

 

-----------------------------------------------------------------------------------------------------------------------------

And now save the files--you will now have a new page on your site and

a link in the information box if you followed this correctly! You can alter it to be about_us or whatever easily

Posted

Thankyou Julie for a super fast reply.. will do it now.. and will let you know how i go..

 

cheers.

 

Regards

Grant :)

Posted

i got these errors..

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/blingpar/public_html/osCommerse/payments.php:8) in /home/blingpar/public_html/osCommerse/includes/functions/sessions.php on line 67

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/blingpar/public_html/osCommerse/includes/functions/database.php:13) in /home/blingpar/public_html/osCommerse/includes/functions/database.php on line 13

 

anyone know what they mean..

Posted

Ok, i just went thru it again to double check.. i still got this error..

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/blingpar/public_html/osCommerse/includes/functions/database.php:13) in /home/blingpar/public_html/osCommerse/includes/functions/database.php on line 13

 

 

Now, where i copied a file to be changed, I save the new page back into that folder .. as in copy shop/conditions.php and i save it as a shop/payments.php

 

is that correct..

Posted

AWESOME... I GOT IT !!!!!

 

 

thanks heaps for the posts and the link...

 

the problem was the /shop/includes/languages/english/conditions.php file didn't wanna work with me.. so I chose /shop/includes/languages/english/privacy.php and it worked..

 

very much appriciated.

 

Regards

Grant

Posted
Ok, i just went thru it again to double check.. i still got this error..

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/blingpar/public_html/osCommerse/includes/functions/database.php:13) in /home/blingpar/public_html/osCommerse/includes/functions/database.php on line 13

Now, where i copied a file to be changed, I save the new page back into that folder .. as in copy shop/conditions.php and i save it as a shop/payments.php

 

is that correct..

Hi Grant

 

I am new to this too, which is why I chose this easy way to add one page. I presume you are doing other contribution suggested, as the one I did doesn't affect includes/functions/database.php? I didn't get any errors. Hope someone else helps you out here.

 

Julie

Posted
AWESOME... I GOT IT !!!!!

thanks heaps for the posts and the link...

 

the problem was the /shop/includes/languages/english/conditions.php file didn't wanna work with me.. so I chose /shop/includes/languages/english/privacy.php and it worked..

 

very much appriciated.

 

Regards

Grant

Great. :thumbsup:

I was worried as I couldn't help. Must have posted at about the same time.

 

Julie

Posted

Thanks Julie..

 

 

I have bookmarked this page.. as it will come in handy later when i add more pages.... and when i see another person ask the same question that i did..

 

cheers.

 

Regrads

Grant. :))

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...