Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

removing sidebars from from website


poorgirl_richgirl

Recommended Posts

Posted

How to remove side bars on shopping_cart.php in commerce. I follow the directions posted and I can remove the footer if needed on this page, but the sidebars aren't moving. Is there an additional file to edit.?

Posted

Depends on which version you are using 2.2 or 2.3.

 

In 2.2 it can be done by editing shopping_cart.php.

 

In 2.3 it can be done by editing includes/template_bottom.php

Posted

In 2.2, you should have code on the page somewhere. Left will be toward the top and right will be toward the bottom.

 

 

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> 

 

Just comment out the two lines, and poof, no more columns.

Posted

In 2.2, you should have code on the page somewhere. Left will be toward the top and right will be toward the bottom.

 


<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> 

 

Just comment out the two lines, and poof, no more columns.

 

In 2.2, you should have code on the page somewhere. Left will be toward the top and right will be toward the bottom.

 


<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> 

 

Just comment out the two lines, and poof, no more columns.

 

 

im not sure how to do that . I did the following below. and nothing happened. the sidebar still there. any advice?

 

Is this correct

//<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

Posted

 

im not sure how to do that . I did the following below. and nothing happened. the sidebar still there. any advice?

 

Is this correct

//<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

 

Close. The // goes inside the tag, though. <? // php

Posted

Close. The // goes inside the tag, though. <? // php

Close but no cigar. The tag includes "php": <?php // require...

 

It probably worked, sort of, because some servers allow <? as the opening PHP tag (though it's bad practice). I also can't promise that the closing ?> will be recognized by all servers if you put // on the line. It might be safer to either move the ?> to the following line, or use <?php /* require...; */ ?>

Posted

To remove the right hand column and the white space that will be left you need to find the following code in all the files in yout root folder

 

<!-- body_text_eof //-->
   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
   </table></td>
 </tr>
</table>
<!-- body_eof //-->

 

You need to replace that code with

 

<!-- body_text_eof //--> 
</tr>
</table>
<!-- body_eof //-->

 

There must be similar code in the file somewhere that is calling for the left column.

REMEMBER BACKUP, BACKUP AND BACKUP

Archived

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

×
×
  • Create New...