Hi everyone!
Can anyone help me to create a function that apresents the expiration date of a product?
I create this node about a product:
"Farm" function:
My goal is to create a notification when a product is about to expire.
Hi everyone!
Can anyone help me to create a function that apresents the expiration date of a product?
I create this node about a product:
"Farm" function:
My goal is to create a notification when a product is about to expire.
You will need to provide more information - what are you stuck with ?
If I understand you correctly you want to store all the product information in a DB including expiry date.
Then you just need to select the data say once a day from the DB and compare it to the date now and if it is less say than one week you need to flag it.