Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove Left Collumn


HyperDwarf

Recommended Posts

Hi!

 

I'm looking for an easy solution to re-design the layout of osC...

The thing I want to achieve is:

- Center the shop, fixed width (790px)

- Custom Top with searchbox etc.

- Remove the left collumn (on every page!)

 

Especially the last point is important... I can't seem to find a topic on this forum that adresses this...

Can someone help me out? (or give me a nice tutorial about re-designing the shop?

 

 

thnx,

HyperDwarf

Link to comment
Share on other sites

All your questions have been answered many times by me for one.

 

the last one surely must be obvious to you remove or comment out the code in each page using a search facility to find the code.

 

this is the code

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
   </table></td>
<!-- body_text //-->

and comment it out

<!-- <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> --> 
<!-- left_navigation //-->
<?php // require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
<!-- </table></td> -->
<!-- body_text //-->

 

the search box in the header is this

<?php 
$hide = tep_hide_session_id(); 
echo '<form name="quick_find" method="get" action="' . tep_href_link (FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false) . '">'; 
echo $hide . '<input type="text" name="keywords" onFocus=this.value="" size="20" maxlength="30" value="' . BOX_SEARCH_TEXT . '"> ' . '<input type="submit" value="Go"><br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . tep_draw_hidden_field('search_in_description', '1') . '</a>'; 
echo '</form>'; 
?>

and to center the shop fixed width 790px

 

catalog/includes/header.php

 

make this

<?php
/*
$Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

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

Copyright ? 2003 osCommerce

Released under the GNU General Public License
*/

//BORDER AROUND CART
print ('<table width="790" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
  
<tr>
  <td bgcolor="#FFFFFF">');
// check if the 'install' directory exists, and warn of its existence

replace the top of your code

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

  • 3 years later...

All your questions have been answered many times by me for one.

 

Hello Arther.

 

First I'd like to thank you for this piece of code. I have been searching for this for quite some time.

 

For the newbies with no experience of OSC or in php it is not easy to find the correct answers.

Regarding this post I have seen that in the kb there is a posting number 65, which obviously

will not do what its stated therein. To me it just shows the initial code without a solution.

 

Secondly, it seems to me that some people, not you, are arrogant to newbies... and a lot of posts

goes without answers.

 

I suggest that working code snippets, and "how to" should be posted in a separate section, to which

interested people could be directed. A sophisticated method of searching would be to have pictures

of, for example the main page. By clicking on an object lika to the gif's at the top right the search result

would be all postings on these gif's, like "change" "remove" etc.,

 

Me, for one, have the problem of getting "languages" and "currency" to the far right. Searched for this

for days and days... before I made a post on this.

 

Thanks for your time and advice!

 

Merry Christmas to You from Sweden

Qim

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...