Guest Posted January 26, 2003 Share Posted January 26, 2003 Change the width of the New Products for January box from 100% to pixels ? it's not in includes/modules/new_products.php Regards Link to comment Share on other sites More sharing options...
♥Loaded Commerce Posted January 26, 2003 Share Posted January 26, 2003 Try includes/modules/products_new.php (the name is similar look closely, closely, :shock: you are getting sleepy, you are getting sleepy, :oops: you are feeling happy, happy with your osc, you like you osc, :) you dont want to change the box width, it makes you happy, look closely, sleepy, sleepy, happy. :D Best Regards, Salvatore Iozzia Loaded Commerce - Oscommerce - All Loaded Up. Link to comment Share on other sites More sharing options...
Guest Posted January 26, 2003 Share Posted January 26, 2003 no that's not the one and yes you shouldgo to bed :wink: Regards Link to comment Share on other sites More sharing options...
Guest Posted January 27, 2003 Share Posted January 27, 2003 I've changed from 3 columns to 2 columns ...should the new_products box ajust itself accordinly ?? Regards Link to comment Share on other sites More sharing options...
Guest Posted January 29, 2003 Share Posted January 29, 2003 Any help would be appreciate :roll: Link to comment Share on other sites More sharing options...
mugitty Posted January 29, 2003 Share Posted January 29, 2003 Pierre; In catalog/index.php (or default.php) around line 290 are the table calls for the middle of the default page: } else { // default page ?> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td></tr> <tr><td class="pageHeading" align="center"><?php echo tep_image(DIR_WS_IMAGES . 'header.jpg', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> Other areas in that same file deal with the table widths for some of the other pages (maybe all of them?) ... if you want to REALLY see something that doesn't set up right out of the box without some tweaking, try being a Foster Parent! Link to comment Share on other sites More sharing options...
Guest Posted January 29, 2003 Share Posted January 29, 2003 Thank's stuart but i've tried this: Changed at line 303 <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="main"><?php echo tep_customer_greeting(); ?></td> </tr> <tr> <td class="main"><br><?php echo TEXT_MAIN; ?></td> </tr> <tr> <td><br><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> </tr> With this <td><table border="0" width="400" cellspacing="0" cellpadding="0" align="center"> <tr> <td class="main"><?php echo tep_customer_greeting(); ?></td> </tr> <tr> <td class="main"><br><?php echo TEXT_MAIN; ?></td> </tr> <tr> <td><br><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> </tr> But that put the whole page at 400 pixel but i only whant the "New products for January" to be 400 pixel Regards Link to comment Share on other sites More sharing options...
sf7804 Posted January 29, 2003 Share Posted January 29, 2003 Nest another table in to the table data cell that pulls up the new products. <tr> <td><table border="0" width="400" cellspacing="0" cellpadding="0" align="center"><td><tr><br><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td></tr></table></td> </tr> And that should do the trick :) The "new products" is treated just like an infobox, and while the width of those is determined by application_top.php each box is coded to be "100%" of the width of the column it is in, new products is no exception, so short of changing the code for just that one box and creating a new constructor, adding a smaller table inside the cell it normally appears in is the easiest way to fix it. Link to comment Share on other sites More sharing options...
Guest Posted January 29, 2003 Share Posted January 29, 2003 Thank's Sarah now it looks like this <tr> <td><table border="0" width="400" cellspacing="0" cellpadding="0" align="center"><td><tr><br><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td></tr></table></td> </tr> But there is no change on the page http://www.charme-et-vous.com/shop/catalog/default.php Regards Link to comment Share on other sites More sharing options...
Guest Posted January 29, 2003 Share Posted January 29, 2003 You'll need to make the <td> statement your nested table is inside of <td width="100%"> if you want a 400 width table to "center" inside of it. Link to comment Share on other sites More sharing options...
Guest Posted January 30, 2003 Share Posted January 30, 2003 Not sure i understand could you give an example ? Regards Link to comment Share on other sites More sharing options...
Guest Posted January 30, 2003 Share Posted January 30, 2003 <tr> <td width="100%" align="center"><table border="0" width="400" cellspacing="0" cellpadding="0"><td><tr><br><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td></tr></table></td> </tr> Should work, unless the parent table this <tr> is inside of isn't set to width="100%" as well. Link to comment Share on other sites More sharing options...
Guest Posted January 30, 2003 Share Posted January 30, 2003 Didn't notice this until now... whomever gave you the original code snippit put the <tr><td> statement in your nested table backwards so it won't work. Needs to be <tr><td> not <td><tr> Correct the above with this little change. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.