Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Including a box on the TEXT_MAIN section of the home page


Guest

Recommended Posts

Hi,

 

I am fairly new to OSCommerce. I have experience with HTML but I am not too savvy in PHP when I need to create my own code.

 

I have created my home page, and it looks perfect. I want to add a drop-down menu that allows visitors to search by 'Manufacturer' ('Artist' in my case). I edited the box appearance so it looks the way I want, now I don't know how to make it show up. I tried using . include(DIR_WS_BOXES . 'manufacturers.php') . but it gives me an error message.

 

Here is the code for /includes/languages/english/index.php (I made a notation in the spot where I would like the drop down menu to show up):

 

<?php
/*
 $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

define('TEXT_MAIN', '<table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
<td width="50%" rowspan="3"> </td>
<td width="393"><table width="393" border="0" cellspacing="0" cellpadding="0">
  <tr>
	<td width="393" height="8" colspan="2"><img src="/store/catalog/images/pixel_trans.gif" width="1" height="1"></td>
  </tr>
  <tr>
	<td width="393" height="17" colspan="2"><img src="/store/catalog/includes/languages/english/images/aero.store.mid_featuring.gif" width="393" height="17"></td>
  </tr>
  <tr>
	<td width="195" height="156"><img src="/store/catalog/includes/languages/english/images/aero.store.mid_pedestrian.jpg" width="195" height="156"></td>
	<td width="198" height="156" valign="top"><img src="/store/catalog/includes/languages/english/images/aero.store.mid_timurban.jpg" width="198" height="155"></td>
  </tr>
  <tr>
	<td width="393" height="3" colspan="2"><img src="/store/catalog/images/pixel_trans.gif" width="1" height="1"></td>
  </tr>
  <tr>
	<td width="393" colspan="2" class="glenword"><img src="/store/catalog/includes/languages/english/images/aero.store.mid_awordfromglen.gif" width="90" height="9">  "What I like most about these artists is lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lectus nibh, dignissim nec, posuere ut, ornare nec, justo. This is something that I have always worked towards in the studio with the artists..." <a href="#" class="glenword">Read More ></a> </td>
  </tr>
  <tr>
	<td width="393" height="15" colspan="2"><img src="/store/catalog/images/pixel_trans.gif" width="1" height="1"></td>
  </tr>
</table></td>
<td width="20"><img src="/store/catalog/images/pixel_trans.gif" width="20" height="1"></td>
<td width="427" valign="top"><table width="427" border="0" cellspacing="0" cellpadding="0">
  <tr>
	<td height="55" colspan="4" background="/store/catalog/images/pixel_trans.gif"><img src="/store/catalog/images/pixel_trans.gif" width="1" height="55"></td>
  </tr>
  <tr>
	<td width="427" height="17" colspan="4"><img src="/store/catalog/includes/languages/english/images/aero.store.mid_mainhed.gif" width="135" height="17"></td>
  </tr>
  <tr>
	<td width="427" height="11" colspan="4"><img src="/store/catalog/includes/languages/english/images/aero.store.mid_show_subhed.gif" width="135" height="11"></td>
  </tr>
  <tr>
	<td colspan="4" background="/store/catalog/images/pixel_trans.gif"><img src="/store/catalog/images/pixel_trans.gif" width="1" height="3"></td>
  </tr>
  <tr>
	<td valign="top" class="shoplist">Block<br>
	  Brendan Lynch<br>
	  Deron Johnson<br>
	  <br> </td>
	<td valign="top" class="shoplist">40 Thieves Orkestra<br>
	  Fragile System<br>
	  Maw & Paw<br>
	  <br> </td>
	<td valign="top" class="shoplist">Pedestrian<br>
	  Sugar High<br>
	  Tim Urban<br>
	  <br> </td>
	<td width="100" valign="top" class="shoplist"> </td>
  </tr>
  <tr>
	<td height="9" colspan="4"><img src="/store/catalog/includes/languages/english/images/aero.store.mid_cat_subhed.gif" width="135" height="9"></td>
  </tr>
  <tr>
	<td colspan="4" background="/store/catalog/images/pixel_trans.gif"><img src="/store/catalog/images/pixel_trans.gif" width="1" height="3"></td>
  </tr>
  <tr>
	<td valign="top" class="shoplist">MP3s<br>
	  CDs</td>
	<td> </td>
	<td> </td>
	<td width="100"> </td>
  </tr>
  <tr>
	<td colspan="4"> </td>
  </tr>
</table></td>
<td width="50%" rowspan="3"> </td>
 </tr>
 <tr>
<td height="2" colspan="3"><table width="840" height="2" border="0" cellpadding="0" cellspacing="0">
  <tr>
	<td width="792" height="2" background="/store/catalog/includes/languages/english/images/1pxl.drkgrey.gif"><img src="/store/catalog/includes/languages/english/images/1pxl.drkgrey.gif" width="1" height="2"></td>
	<td width="48" height="2"><img src="/store/catalog/images/pixel_trans.gif" width="1" height="1"></td>
  </tr>
</table></td>
 </tr>
 <tr>
<td width="393" valign="top"><table width="393" border="0" cellspacing="0" cellpadding="0">
  <tr>
	<td width="393" height="10"><img src="/store/catalog/images/pixel_trans.gif" width="1" height="10"></td>
  </tr>
  <tr>
	<td width="393" height="20" valign="top">  <img src="/store/catalog/includes/languages/english/images/aero.store.bot_aeromusic.gif" width="154" height="9"></td>
  </tr>
  <tr>

	  //////////////////////

	  <td height="60" valign="top">THIS IS WHERE I WANT THE DROP DOWN MENU</td>

	 //////////////////////

  </tr>
  <tr>
	<td width="393" height="25"><img src="/store/catalog/images/pixel_trans.gif" width="1" height="1"></td>
  </tr>
  <tr>
	<td><table width="393" height="107" border="0" cellpadding="0" cellspacing="0">
	  <tr>
		<td width="107" height="107"><img src="/store/catalog/includes/languages/english/images/aero.store.bot_album.jpg" width="107" height="107"></td>
		<td width="10" height="107"> </td>
		<td width="211" height="107" valign="middle" class="albuminfo"><span class="artistname">tim urban</span><br>
		  Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lectus nibh, dignissim nec, posuere ut, ornare nec, justo.<br>
		  <a href="#" class="albuminfo">Read more ></a> </td>
		<td width="65" height="107"> </td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td width="393" height="35"> </td>
  </tr>
  <tr>
	<td><table width="393" height="107" border="0" cellpadding="0" cellspacing="0">
	  <tr>
		<td width="107" height="107"><img src="/store/catalog/includes/languages/english/images/aero.store.bot_album.jpg" width="107" height="107"></td>
		<td width="10" height="107"> </td>
		<td width="211" height="107" valign="middle" class="albuminfo"><span class="artistname">fragile system</span><br>
 Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lectus nibh, dignissim nec, posuere ut, ornare nec, justo.<br>
 <a href="#" class="albuminfo">Read more ></a> </td>
		<td width="65" height="107"> </td>
	  </tr>
	</table></td>
  </tr>
</table></td>
<td width="447" colspan="2" valign="top"><table width="447" border="0" cellspacing="0" cellpadding="0">
  <tr>
	<td width="447" height="10" colspan="3"><img src="/store/catalog/images/pixel_trans.gif" width="1" height="10"></td>
  </tr>
  <tr>
	<td width="173" height="80" align="left" valign="top" class="fnf"><img src="/store/catalog/includes/languages/english/images/aero.store.bot_FnF.hed.gif" width="168" height="37"><br>
	  Dave Stewart, Gwen Stefani, Annie Lennox, The Smothers Brothers, Yes. <a href="#" class="fnf">Visit ></a> </td>
	<td width="226" height="70" valign="top"><img src="/store/catalog/includes/languages/english/images/aero.store.bot_FnF.pic.gif" width="226" height="62"></td>
	<td width="48" valign="top"> </td>
  </tr>
  <tr>
	<td height="25" colspan="3"><img src="/store/catalog/images/pixel_trans.gif" width="1" height="1"></td>
  </tr>
  <tr>
	<td colspan="3"><table width="447" height="107" border="0" cellpadding="0" cellspacing="0">
	  <tr>
		<td width="107" height="107"><img src="/store/catalog/includes/languages/english/images/aero.store.bot_album.jpg" width="107" height="107"></td>
		<td width="10" height="107"> </td>
		<td width="211" height="107" valign="middle" class="albuminfo"><span class="artistname">pedestrian</span><br>
 Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lectus nibh, dignissim nec, posuere ut, ornare nec, justo.<br>
 <a href="#" class="albuminfo">Read more ></a> </td>
		<td width="119" height="107"> </td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td height="35" colspan="3"> </td>
  </tr>
  <tr>
	<td colspan="3"><table width="447" height="107" border="0" cellpadding="0" cellspacing="0">
	  <tr>
		<td width="107" height="107"><img src="/store/catalog/includes/languages/english/images/aero.store.bot_album.jpg" width="107" height="107"></td>
		<td width="10" height="107"> </td>
		<td width="211" height="107" valign="middle" class="albuminfo"><span class="artistname">block</span><br>
 Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lectus nibh, dignissim nec, posuere ut, ornare nec, justo.<br>
 <a href="#" class="albuminfo">Read more ></a> </td>
		<td width="119" height="107"> </td>
	  </tr>
	</table></td>
  </tr>
</table></td>
 </tr>
</table>');
define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {
 define('HEADING_TITLE', 'Let\'s See What We Have Here');
 define('TABLE_HEADING_IMAGE', '');
 define('TABLE_HEADING_MODEL', 'Model');
 define('TABLE_HEADING_PRODUCTS', 'Product Name');
 define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');
 define('TABLE_HEADING_QUANTITY', 'Quantity');
 define('TABLE_HEADING_PRICE', 'Price');
 define('TABLE_HEADING_WEIGHT', 'Weight');
 define('TABLE_HEADING_BUY_NOW', 'Buy Now');
 define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');
 define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');
 define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');
 define('TEXT_SHOW', '<b>Show:</b>');
 define('TEXT_BUY', 'Buy 1 \'');
 define('TEXT_NOW', '\' now');
 define('TEXT_ALL_CATEGORIES', 'All Categories');
 define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');
} elseif ($category_depth == 'top') {
 define('HEADING_TITLE', 'What\'s New Here?');
} elseif ($category_depth == 'nested') {
 define('HEADING_TITLE', 'Categories');
}
?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...