nachotator Posted July 6, 2010 Posted July 6, 2010 Hello, I want to know how to put on products not in stock the date on which again have stock. You know if there is any contribution or any way to do it? I have installed a contribution to leave a message saying whether or not stock.
Ken44 Posted July 6, 2010 Posted July 6, 2010 Hi What you require is standard code in oscommerce-2.2rc2a. If you are using a template the code may have been removed or commented out. 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 } ?> Regards Ken
nachotator Posted July 6, 2010 Author Posted July 6, 2010 Thanks, and this code in which file has to be?
Ken44 Posted July 6, 2010 Posted July 6, 2010 Hi. The code belongs in product_info.php Originally at line 189. However if you have a template then you may have to ‘try it and see’ Regards Ken
Recommended Posts
Archived
This topic is now archived and is closed to further replies.