Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding an "About us" link to Info box


alcova

Recommended Posts

hi everyone, I don't know if someone has already posted a similar request.

I'm adapting the templates to my shop needs and I would like to add an About us link in the Information box. I tried following the way suggested in "About us contribution" http://www.oscommerce.com/community/contributions,1404 but it seems that the STS system (at least the one I'm using...) doesn't refer to the information.php file to create the box, rather to includes/boxes/info_pages.php.

 

The php in the file is the following

 

<?php

$info_box_contents = array();

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

 

new infoBoxHeading($info_box_contents, false, false);

 

$rows = 0;

$page_list = '<table border="0" width="100%" cellspacing="0" cellpadding="1">';

 

 

 

 

while ($page = tep_db_fetch_array($page_query)) {

$rows++;

 

 

$target="";

if($page['link_target']== 1) {

$target="_blank";

}

 

 

 

if($page['page_type'] != '2'){

 

$link = FILENAME_PAGES . '?pages_id=' . $page['pages_id'];

 

 

 

}else{

 

$link = FILENAME_CONTACT_US;

}

 

if($page['intorext'] == 1) {

$page_list .= '<tr><td class="infoBoxContents"><a target="'.$target.'" href="' . $page['externallink'] . '">' . $page['pages_title'] . '</a></td></tr>';

}

else {

$page_list .= '<tr><td class="infoBoxContents"><a target="'.$target.'" href="' . tep_href_link($link) . '">' . $page['pages_title'] . '</a></td></tr>';

}

}

 

 

 

$page_list .= '</table>';

 

$info_box_contents = array();

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

 

 

new infoBox($info_box_contents);

?>

 

 

 

but I have no clue how and where I have to insert a reference to the file catalog/about_us.php to show it in the box.

 

Anyone could please help me?

Ciao

Stefano

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...