Jump to content

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
}

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×