Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

'view source'


tiG

Recommended Posts

if you view source you are looking at the html that has been output by the script running on that particular website. so if you are looking at the source code of an oscommerce site, you are looking at the result of all the parsed components from the various php files that have been called; i.e. the file itself (such as index.php), the header, footer, column_left and column_right files, the application_top and bottom etc. etc.

 

If you are looking for design and html tips, then view source works. If you are looking for how somebody has acheived their osc layout, then view source isnt going to help you that much!

 

Hope that helps

Link to comment
Share on other sites

what little gem? post the code and i'll try to help! Like I said in my pm, help on the public forums is free, as it helps others after you to find solutions too.

Link to comment
Share on other sites

okay, hope it's not their top secret! LOL! I want a simple uncluttered search box top left column. like this one

 

cool site

 

I've tried search box anywhere, and keep getting errors.

 

the code from the view source is

 

<!-- start searchbox //-->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td>
<td width="100%" height="14" class="infoBoxHeading">Quick Find</td>
<td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>
 </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
 <tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="2" class="infoBoxContents">
 <tr>
<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
 <tr>
<td align="center" class="boxText"><form name="quick_find" action="http://www.cgimports.com/advanced_search_result.php" method="get"><input type="hidden" name="osCsid" value="cdca44a7d20e455eb818dcdb2b165167" /><input type="text" name="keywords" size="30" maxlength="30" style="width: 124px">?<input type="hidden" name="osCsid" value="cdca44a7d20e455eb818dcdb2b165167"><br><a href="http://www.cgimports.com/advanced_search.php"><b>Advanced Search</b></a></form></td>
 </tr>
 <tr>
<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
</table>
</td>
 </tr>
</table>
<!-- end searchbox //-->

 

I just don't know where to put it, I tried in left column, but got an error if I tried to put it above categories.

Link to comment
Share on other sites

if you copy this as it is and put it into your site you will be giving every visitor to your site the same session id, which will cause major problems! Basically, what you need is to edit your includes/boxes/search.php file. Tweaking that will remove any "clutter"

Link to comment
Share on other sites

thanks Tony, that's actually what I wound up doing when I found a few extra minutes of time. It gives the same effect, but not done that way. Thanks for letting me know that I didn't want that, sometimes you think someone else's way must be better. I did get the look, but without the sessions problem. 'preciate you!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...