Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

link from box to out of cart pages


Guest

Recommended Posts

Posted

I would like to link my link pages and information page to links in the information box , how?

Posted

Hi kim, so will that add that link to the information box?

 

And thats all you got to do?

Posted

Ralph.....Give it a go and if you run into any problems, post the code you are using and the error you get, ok?

Posted

Followed the example and it took out the categories box, need to and the links to the info box.

Posted

Okay....Let's try this again......Before you do anything make sure you have a backup of the files we are changing.

 

1-Open your catalog/includes/boxes/information.php file. It should look something like this:

 

<?php

/*

 $Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $



 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2003 osCommerce



 Released under the GNU General Public License

*/

?>

<!-- information //-->

         <tr>

           <td>

<?php

 $info_box_contents = array();

 $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);



 new infoBoxHeading($info_box_contents, false, false);



 $info_box_contents = array();

 $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .

                                        '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .

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

                                        '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>');



 new infoBox($info_box_contents);

?>

           </td>

         </tr>

<!-- information_eof //-->

 

2- Using the code below as an example, add a line similar to this one line above the last link in the box

 

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

 

Your code should now look like this:

 

<!-- information //-->

         <tr>

           <td>

<?php

 $info_box_contents = array();

 $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);



 new infoBoxHeading($info_box_contents, false, false);



 $info_box_contents = array();

 $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .

                                        '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .

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

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

                                        '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>');



 new infoBox($info_box_contents);

?>

           </td>

         </tr>

<!-- information_eof //-->

 

3- Open your filenames.php (or application_top.php if you are using an older snapshot) and add the define for your links page. e.g.

define('FILENAME_LINKS', 'my_link_page_address.html');

 

4- Open catalog/includes/languages/YOUR_LANGUAGE.php and find the section marked "information box text"

 

// 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');

 

Now define your links page text. e.g.:

 

define('BOX_INFORMATION_LINKS', 'My Links Page');

 

Save all of your files and upload them to the appropriate directories.

Posted

One of the link I'm putting in is www.gateway4gifts.net/links/info.html

would thaat be "http://www.gateway4gifts.net/links/info.html/"

in the application top page in loaded 5, I don't know exactly what to pit as the address and to use " or ' outside the address

Posted

Ralph,

 

You need to use the relative address in the define.

 

define('FILENAME_LINKS', '/links/info.html');

Archived

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

×
×
  • Create New...