Hello,
I'm developing a website in which the customer asked me to make a variable product price based on the expiration date.
If you see the image attached I have three main fields date, quantity, and price.
So I really want several things here:
First:
I want the date field to automatically be reduced by one day every 24 hours(day), and when the date is the same as the current system date then this quantity is expired and not seen on the product page.
also to change the price accordingly
say a simple product has 100 days for expiration and a price of 5$, if the expiration went less than 50 days the price should drop to 4$ automatically.
Second:
how to let the customer on the front end choose the expiration date and upon it the price changes as per the entered data in the product page.
Last thing:
how to link the price field with the actual price of the product in woo-commerce!
Your entire setup would require some amount of custom coding to achieve. Unfortunately the custom code that is required to do this would be out of the scope of our support forum. As such we won't be able to provide any form of help in implementing a solution for this.
What I can do however is point you in the direction where you can get some assistance with this. There are contractors that are registered with us that offer this kind of development and as such I would recommend that you use the link below to contact them. https://toolset.com/contractors/