Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {


godino1

Recommended Posts

Posted

Can this be added to the product listing pages so it shows up as date expected or date added?

 

<?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'])); ?><p></td>

</tr>

<?php

} else {

?>

<tr>

<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?><p></td>

</tr>

<?php

}

?>

Archived

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

×
×
  • Create New...