Jump to content

product ID php code


arjundass
 Share

Recommended Posts

I have 2 products in my website. I have added an creation date field and expiration date field in orders table. I have populated the creation date field with date when order is placed , need to populate the expiration field .

I am using product id to fill expiration field , If product id = 5 , then expiration_date = creation date + 30 days
Else
product id = 10 then expiration_date = creation date + 60 days

Kindly help with PHP code .

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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More