Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with Information box links


pafranklin

Recommended Posts

Hi, another newbie question - sorry!

 

I have added a number of links within the information box but have not got the naming / coding conventions right. Hence the information box looks like this (below). It does work although it is not picked up in the site map. Site here if you want to see what i mean

 

I know that I need to edit the "about", "templates", "ordering" and price list pages as well but am not sure how. Would someone please point me in the right direction - Many thanks...................

 

 

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

 osCommerce, Open Source E-Commerce Solutions
 [url=http://www.oscommerce.com]http://www.oscommerce.com[/url]

 Copyright ? 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><br>'.
'<a href="' . tep_href_link(FILENAME_SITEMAP) . '">' . BOX_INFORMATION_SITEMAP . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_PRINT_CATALOG, '', 'NONSSL') . '" target="_BLANK">' . BOX_INFORMATION_PRINT_CATALOG .'</a><br>' . 
'<a href="/catalog/about.php">' . About_us. '</a><br>' .
'<a href="/catalog/templates.php">' . Templates. '</a><br>' .
'<a href="/catalog/ordering.php">' . Ordering. '</a><br>' .
'<a href="/catalog/price_list.php">' . Full_Price_List. '</a><br>' );

 new infoBox($info_box_contents);
?>
		</td>
	  </tr>
<!-- information_eof //-->

You will never learn if you don't try. And boy am I trying....!

Link to comment
Share on other sites

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

 osCommerce, Open Source E-Commerce Solutions
 [url=http://www.oscommerce.com]http://www.oscommerce.com[/url]

 Copyright ? 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><br>'.
'<a href="' . tep_href_link(FILENAME_SITEMAP) . '">' . BOX_INFORMATION_SITEMAP . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_PRINT_CATALOG, '', 'NONSSL') . '" target="_BLANK">' . BOX_INFORMATION_PRINT_CATALOG .'</a><br>' .
'<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_TEMPLATES) . '">' . BOX_INFORMATION_TEMPLATES . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_ORDERING) . '">' . BOX_INFORMATION_ORDERING . '</a><br>' . 
'<a href="' . tep_href_link(FILENAME_PRICE_LIST) . '">' . BOX_INFORMATION_PRICE_LIST . '</a>');

 new infoBox($info_box_contents);
?>
		</td>
	  </tr>
<!-- information_eof //-->

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

THanks for this. I have added this as the information.php file and the sbox now looks very strange with the links not working. What do I need to do now please...........?

You will never learn if you don't try. And boy am I trying....!

Link to comment
Share on other sites

You now need to define things.

 

add this to catalog/includes/filenames.php

 

define(FILENAME_ABOUT_US, 'about.php');
define(FILENAME_TEMPLATES, 'templates.php');
define(FILENAME_ORDERING, 'ordering.php');
define(FILENAME_PRICE_LIST, 'price_list.php');

 

add this to catalog/includes/languages/english.php

 

define(BOX_INFORMATION_ABOUT_US, 'About Us');
define(BOX_INFORMATION_TEMPLATES, 'Templates');
define(BOX_INFORMATION_ORDERING, 'Ordering');
define(BOX_INFORMATION_PRICE_LIST, 'Price List');

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

you still have an error on your site map which may be due to not defining the table in catalog/includes/database_tables.php

 

define(TABLE_PAGES, 'pages');

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...