Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Hello people, I would like to give time-limited release on certain products. I tried it with the following code but unfortunately it does not work. could someone please suggest something to me wi I could realize it?

$pls_customer_query = tep_db_query("select * from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_id . "'");
$pls_customer = tep_db_fetch_array($pls_customer_query);
$vip_expires_date = tep_date_long($pls_customer['expires_date']); 

if (date('yyyy-mm-dd', strtotime($vip_expires_date)) >= date('yyyy-mm-dd')) {
xxxxxxx
}

 

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...