Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

The requested URL /shop/FILENAME_BATTERY


kruiser69

Recommended Posts

wot am i missing ? i added the file battery.php to /shop and added these lines define('BOX_INFORMATION_BATTERY', 'BATTERY CROSS REFERENCE');

to english.php and this line '<a href="' . tep_href_link(FILENAME_BATTERY, '', 'NONSSL') . '">' . BOX_INFORMATION_BATTERY . '</a><br>' . to information.php

 

 

what is wrong ???

Link to comment
Share on other sites

i pasted it here in information.php u can take a look at wot happens at www.durasales.com.au/shop

 

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => '<a href="' . tep_href_link(FILENAME_SHIPPING, '', 'NONSSL') . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .

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

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

'<a href="' . tep_href_link(FILENAME_BATTERY, '', 'NONSSL') . '">' . BOX_INFORMATION_BATTERY . '</a><br>' .

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

Link to comment
Share on other sites

You are saying ... load a file from a definition called FILENAME_BATTERY this would be similar to FILENAME_DEFAULT where that value is default.php and that file is located in the /catalog directory so when it is referenced as FILENAME_DEFAULT it is interpreted to be default.php

 

You should have a filename called something, I am assuming batter.php

 

This would be defined as:

define('FILENAME_BATTERY','battey.php');

 

Then that file would go in /catalog and a language file for it would go in /includes/languages/english/battery.php

Link to comment
Share on other sites

the filename is battery.php THIS LINE IS IN engilish.php

define('BOX_INFORMATION_BATTERY', 'BATTERY CROSS REFERENCE');

 

THIS LINE IS IN information.php

'<a href="' . tep_href_link(FILENAME_BATTERY, '', 'NONSSL') . '">' . BOX_INFORMATION_BATTERY . '</a><br>' .

 

 

 

THE FILE LOCATED IN /public_html/shop/includes/languages/english/

 

 

is that easier to tell me wot i am doing wrong ?

Link to comment
Share on other sites

The part where you are missing the code is a problem.

 

Look at /catalog/contact_us.php

 

Now look at /catalog/includes/languages/english/contact_us.php

 

Now look at /catalog/includes/languages/espanol/contact_us.php

 

Now look at /catalog/includes/languages/german/contact_us.php

 

Now notice there is a define statement either in /includes/application_top.php or in /includes/filenames.php for:

 

  define('FILENAME_CONTACT_US', 'contact_us.php');

 

Now look in /includes/languages/english.php

 

There is a define statement there:

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

 

Now look in /includes/boxes/information.php

 

There is a peice of code there:

 

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

 

Put all this together ... and there is a box on the screen that contains a link to the contact_us.php page.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...