Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

trying to add new box to the shop


Genom

Recommended Posts

I called it specials2.php

this is what inside the file

 

<?php

/*

$Id: specials2.php,v 1.21 2003/06/09 22:07:52 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- best_sellers //-->

<tr>

<td>

<?php $info_box_contents = array();

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

 

new infoBoxHeading($info_box_contents, false, false, tep_href_link(FILENAME_SPECIALS));

 

$info_box_contents = array();

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

'text' => require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SPECIALS2);

echo SPECIALS2);

 

new infoBox($info_box_contents);

 

?>

</td>

</tr>

<!-- best_sellers_eof //-->

<?php

 

?>

 

 

I want that it will go to specials2 language file and take the data from there and enter it to the file but I get error

as you can see here

http://www.poweraddition.co.il/shop/

something is wrong in this line:

 

'text' => require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SPECIALS2);

echo SPECIALS2);

 

what do I need to fix?

Link to comment
Share on other sites

I called it specials2.php

this is what inside the file

 

<?php

/*

$Id: specials2.php,v 1.21 2003/06/09 22:07:52 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- best_sellers //-->

<tr>

<td>

<?php $info_box_contents = array();

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

 

new infoBoxHeading($info_box_contents, false, false, tep_href_link(FILENAME_SPECIALS));

 

$info_box_contents = array();

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

'text' => require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SPECIALS2);

echo SPECIALS2);

 

new infoBox($info_box_contents);

 

?>

</td>

</tr>

<!-- best_sellers_eof //-->

<?php

 

?>

I want that it will go to specials2 language file and take the data from there and enter it to the file but I get error

as you can see here

http://www.poweraddition.co.il/shop/

something is wrong in this line:

 

'text' => require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SPECIALS2);

echo SPECIALS2);

 

what do I need to fix?

nm I had idea how to fix it

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...