wrangler Posted January 27, 2006 Posted January 27, 2006 Hi people I'd like to remove the "This product was added to our catalog on......" which is displayed under every product description. I've looked through the attributes but couldn't find it anywhere as an option to disable it. Oh, i might be blind here.. B) Anyway, any ideas? Thanks a lot
241 Posted January 27, 2006 Posted January 27, 2006 product_info.php if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) { ?> <tr> <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td> </tr> <?php } else { ?> <tr> <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td> </tr> <?php } ?> remove the else statement to leave if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) { ?> <tr> <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td> </tr> <?php } ?> or remove the whole section if required. This can be done by backing up your file then removing the code or by commenting out No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
wrangler Posted January 27, 2006 Author Posted January 27, 2006 Oh and som'thing else... How can i change the date that a product has been added, so the program will understand that it is new?? f.e. i have a product added on Nov.2005 and I'd like to change that date to today to present it as new. Any ideas greatly appreciated
241 Posted January 27, 2006 Posted January 27, 2006 At present on a default setup this would need to be done via phpmyadmin and editing the date manually or via a sql statement. It could be coded to the admin categories.php to have an input box similar to the date available box so that it can be set from the admin. No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
wrangler Posted January 27, 2006 Author Posted January 27, 2006 Oooook, thanks again for your help. phpMyadmin was a good idea, actually :rolleyes:
Guest Posted January 27, 2006 Posted January 27, 2006 you can do it using easy populate too i think..
Recommended Posts
Archived
This topic is now archived and is closed to further replies.