Jump to content

product ID php code


arjundass

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 .

Link to comment
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
×
×
  • Create New...