ahira Posted April 28, 2005 Share Posted April 28, 2005 hi, i'm looking for a way, to configure the "new products"-box in a way, that they look like a normal categorie-listing. what i've to change in the includes/modules/new_products.php or exist a contribution? thanks in advance. greatings Link to comment Share on other sites More sharing options...
boxtel Posted April 28, 2005 Share Posted April 28, 2005 hi,i'm looking for a way, to configure the "new products"-box in a way, that they look like a normal categorie-listing. what i've to change in the includes/modules/new_products.php or exist a contribution? thanks in advance. greatings <{POST_SNAPBACK}> personally I have changed the new products page to use the products listing module like the index does. You just give it a different query to handle. That way all listings have the same look. So set up the $listing_sql to select the new products and call the products_listing module. Treasurer MFC Link to comment Share on other sites More sharing options...
boxtel Posted April 28, 2005 Share Posted April 28, 2005 personally I have changed the new products page to use the products listing module like the index does. You just give it a different query to handle.That way all listings have the same look. So set up the $listing_sql to select the new products and call the products_listing module. <{POST_SNAPBACK}> to illustrate, this is all I have left in new_products.php <?php require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCTS_NEW); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_PRODUCTS_NEW)); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <title><?php echo TITLE . ' - New Products'; ?></title> <?php include('includes/Meta.php');?> <link rel="stylesheet" type="text/css" href="<?php echo STYLESHEET; ?>"> <script LANGUAGE="JavaScript1.2" type="text/javascript" SRC="includes/javascript/java_functions.js"></SCRIPT> </head> <body > <?php require(DIR_WS_INCLUDES . 'header.php'); echo '<table border="0" width="100%" cellspacing="' . MAJOR_PADDING . '" cellpadding="' . MAJOR_PADDING . '">'; ?> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0"> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> </table></td> <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> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php $products_new_array = array(); $days = "90"; $listing_sql = "select p.products_quantity, p.products_model, p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_date_added, m.manufacturers_name from " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on (p.manufacturers_id = m.manufacturers_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and products_date_added > SUBDATE( now( ) , INTERVAL " . $days . " DAY ) order by p.products_date_added DESC, pd.products_name"; ?> <tr> <td><?php include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); ?></td> </tr> </td> </table></td> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0"> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> </table></td> </tr> </table> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Treasurer MFC Link to comment Share on other sites More sharing options...
ahira Posted April 28, 2005 Author Share Posted April 28, 2005 thanks for your quick help, but i didn't meant the products_new.php, i meant the box apearing in the front page "new products in april" an show a fixed max. number of new products. how i've to change the querry there? what does your meta.php? what kind of contribution is this? Link to comment Share on other sites More sharing options...
boxtel Posted April 28, 2005 Share Posted April 28, 2005 thanks for your quick help, but i didn't meant the products_new.php, i meant the box apearing in the front page "new products in april" an show a fixed max. number of new products.how i've to change the querry there? what does your meta.php? what kind of contribution is this? <{POST_SNAPBACK}> meta.php is a major contribution containing this : <meta http-equiv="imagetoolbar" content="no"> <meta name="robots" content="index,follow"> <meta name="Author" content="Crystal Light Centrum"> Treasurer MFC Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.