Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Coding Help


Guest

Recommended Posts

What is the format exactly to get different table layouts on each page.. I edited the column_left.php trying to get it to have a different look and I get a T_String error when the first if statement starts... Please give some direction and guidance.

 

Thanks

 

<?php

define('LEFT_MAIN', '<Font="Verdana">

<img src="images/l_order.gif" border="0" width="128" height="60">

<br><br>

<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
 <tr>
   <td>

<table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">

 <tr>
   <td><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="1"></td>

if ((USE_CACHE == 'true') && empty($SID)) {
 echo tep_cache_categories_box();
} else {
 include(DIR_WS_BOXES . 'categories.php');
}

 </tr>
 
 <tr>
   <td class="boxText"></td>

if ((USE_CACHE == 'true') && empty($SID)) {
 echo tep_cache_manufacturers_box();
} else {
 include(DIR_WS_BOXES . 'manufacturers.php');
}

 </tr>
 
 <tr>
   <td><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="1"></td>

require(DIR_WS_BOXES . 'whats_new.php');
 require(DIR_WS_BOXES . 'information.php');

 </tr>
</table>

</font>');
 
?>

Link to comment
Share on other sites

if that is in the colum left kick the define at the top and </font>'); at the bottum and try again, also you would have to open and close the php tags...

 

also i you would like to change the style of your boxes i would go for includes/classes/boxes.php

 

greetz john

Link to comment
Share on other sites

it worked great.. but now the problem is different.. i have new images for the boxes on the left... have them in my code.. but it still shows the default backgrounds for the boxes..

 

which page edits the boxes? also.. does anyone have example code they might be willing to post to give some of us noobs a start?

 

Thanks in advance

Link to comment
Share on other sites

if you want to add a background to every box in the colum

best is to do it over classes.

add a new class to stylesheet give it a background and wrap the code from the box in to the class.

 

some related topics

http://www.oscommerce.info/kb/osCommerce/C...n_and_Layout/54

http://www.oscommerce.com/forums/index.php?showtopic=116883&hl=

http://www.oscommerce.com/forums/index.php?showtopic=116377&hl=

http://www.oscommerce.com/forums/index.php?showtopic=114636&hl=

http://www.oscommerce.com/forums/index.php?showtopic=117080&hl=

 

greetz john

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...