Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Set date of stock?


nachotator

Recommended Posts

Posted

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.

Posted

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

Posted

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...