Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Header Modification Help Required


richardhaigh

Recommended Posts

Posted

Hi All,

 

Would appreciate some help on this one. Im new to oscommerce but after a lot of forum searching ive managed to get my site live and working.

 

However on my site I have two areas at the top of my page I would like to remove and replace with a product search box

 

Website is

 

http://marquee-electrics.co.uk/catalog/

 

Everything i try results in errors, so would really appreciate some help or pointers with this.

 

Thanks in advance

 

 

Richard

Posted
Hi All,

 

Would appreciate some help on this one. Im new to oscommerce but after a lot of forum searching ive managed to get my site live and working.

 

However on my site I have two areas at the top of my page I would like to remove and replace with a product search box

 

Website is

 

http://marquee-electrics.co.uk/catalog/

 

Everything i try results in errors, so would really appreciate some help or pointers with this.

 

Thanks in advance

Richard

 

 

I believe the code is in your header.php

 

Replace:

 

include(DIR_WS_BOXES . 'languages.php');

include(DIR_WS_BOXES . 'currencies.php');

 

 

With:

 

require(DIR_WS_BOXES . 'search.php');

 

or

 

include(DIR_WS_BOXES . 'search.php');

 

Post what you find in your header.php near or around the languages.php part and maybe we can figure it out.. Question is a little vague

 

 

When I view source it looks like this:

 

<td width="138" height="85">

<br style="line-height:24px">

Currencies:<br>

<br style="line-height:13px"><form name="currencies" action="http://marquee-electrics.co.uk/catalog/index.php" method="get"><select name="currency" onChange="this.form.submit();" class="jamp"><option value="GBP" SELECTED>Pound</option></select><input type="hidden" name="osCsid" value="6paebd42cqmjuf2vc4iga6tg74"></form> </td>

<td width="1" height="85"><img src="images/li.gif" border="0" alt="" width="1" height="85"><br></td>

<td width="20" height="85"></td>

<td width="132" height="85">

<br style="line-height:26px">

Languages:<br>

<br style="line-height:11px">

<a href="http://marquee-electrics.co.uk/catalog/index.php?language=en&osCsid=6paebd42cqmjuf2vc4iga6tg74"><img src="includes/languages/english/images/icon.gif" border="0" alt="English" title=" English " width="24" height="15"></a><img src="images/spacer.gif" border="0" alt="" width="10" height="1"><br>

</td>

 

 

Ultimately what you are after is:

 

<td colspan="2">

include(DIR_WS_BOXES . 'search.php');

</TD>

 

It shouldn't be that easy but you need to replace 2 td with 1 so colspan=2

 

Hope something in there helps.

Archived

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

×
×
  • Create New...