Whiskers Posted December 22, 2009 Posted December 22, 2009 Hi all, On the New Products page where they are all listed downwards, how can I remove the bits where it states the "Date Added"? Also while I'm at it, is there a way to make them in rows instead on showing downwards? Thanks very much!
Guest Posted December 23, 2009 Posted December 23, 2009 Nick, This will allow you to display your products in columns: http://addons.oscommerce.com/info/112 and to remove the 'This product was added...........' in the catalog>product_info.php ...find these lines: <tr> <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td> </tr> Change them to this: <tr> <td align="center" class="smallText"> <!-- <?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?> --> </td> </tr> Chris
Whiskers Posted December 23, 2009 Author Posted December 23, 2009 Nick, This will allow you to display your products in columns: http://addons.oscommerce.com/info/112 and to remove the 'This product was added...........' in the catalog>product_info.php ...find these lines: <tr> <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td> </tr> Change them to this: <tr> <td align="center" class="smallText"> <!-- <?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?> --> </td> </tr> Chris Hi Chris, Thanks for the reply. I tried that code mod, but it didn't do anything. I meant it for this page: http://fashionstation.co.uk/products_new.php I will have a look at that contribution in a bit.
Whiskers Posted December 23, 2009 Author Posted December 23, 2009 Just installed that contribution. Nice and easy apart from it not showing the pictures in the columns. When I clcik the admin to go back to normal style listing it works how it was previously. I guess it might be somethign to do with More Pics that I have installed. Do you think that could be the problem?
a.forever Posted December 23, 2009 Posted December 23, 2009 Hi Chris, Thanks for the reply. I tried that code mod, but it didn't do anything. I meant it for this page: http://fashionstation.co.uk/products_new.php I will have a look at that contribution in a bit. In catalog/products_new.php FIND: <td valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '"><b><u>' . $products_new['products_name'] . '</u></b></a><br>' . TEXT_MANUFACTURER . ' ' . $products_new['manufacturers_name'] . '<br>' . TEXT_DATE_ADDED . ' ' . tep_date_short($products_new['products_date_added']) . '<br>' . TEXT_PRICE . ' ' . $products_price; ?></td> REPLACE WITH: <td valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '"><b><u>' . $products_new['products_name'] . '</u></b></a><br>' . TEXT_MANUFACTURER . ' ' . $products_new['manufacturers_name'] . '<br>' . TEXT_PRICE . ' ' . $products_price; ?></td>
Whiskers Posted December 24, 2009 Author Posted December 24, 2009 In catalog/products_new.php FIND: <td valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '"><b><u>' . $products_new['products_name'] . '</u></b></a><br>' . TEXT_MANUFACTURER . ' ' . $products_new['manufacturers_name'] . '<br>' . TEXT_DATE_ADDED . ' ' . tep_date_short($products_new['products_date_added']) . '<br>' . TEXT_PRICE . ' ' . $products_price; ?></td> REPLACE WITH: <td valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '"><b><u>' . $products_new['products_name'] . '</u></b></a><br>' . TEXT_MANUFACTURER . ' ' . $products_new['manufacturers_name'] . '<br>' . TEXT_PRICE . ' ' . $products_price; ?></td> Cheers Kevin, I just went to amend it and realised that it has a More Pics change in that section like this: <td width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>" valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $products_new['image_filename'], $products_new['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; ?></td> <td valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '"><b><u>' . $products_new['products_name'] . '</u></b></a><br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new['products_date_added']) . '<br>' . TEXT_MANUFACTURER . ' ' . $products_new['manufacturers_name'] . '<br><br>' . TEXT_PRICE . ' ' . $products_price; ?></td> <td align="right" valign="middle" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_new['products_id']) . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a>'; ?></td> </tr> What needs changing there?
a.forever Posted December 24, 2009 Posted December 24, 2009 Cheers Kevin, I just went to amend it and realised that it has a More Pics change in that section like this: <td width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>" valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $products_new['image_filename'], $products_new['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; ?></td> <td valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '"><b><u>' . $products_new['products_name'] . '</u></b></a><br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new['products_date_added']) . '<br>' . TEXT_MANUFACTURER . ' ' . $products_new['manufacturers_name'] . '<br><br>' . TEXT_PRICE . ' ' . $products_price; ?></td> <td align="right" valign="middle" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_new['products_id']) . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a>'; ?></td> </tr> What needs changing there? FIND: '</u></b></a><br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new['products_date_added']) . '<br>' . TEXT_MANUFACTURER . ' REPLACE WITH: '</u></b></a><br>' . TEXT_MANUFACTURER . ' Don't forget the apostrophe at the ends and enjoy.
Whiskers Posted December 27, 2009 Author Posted December 27, 2009 FIND: '</u></b></a><br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new['products_date_added']) . '<br>' . TEXT_MANUFACTURER . ' REPLACE WITH: '</u></b></a><br>' . TEXT_MANUFACTURER . ' Don't forget the apostrophe at the ends and enjoy. That done the trick! Fantastic! Thanks!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.