Skip Navigation

[Resolved] custom product price depending on date

This support ticket is created 4 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Shane 4 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#1979755
Captur122e.PNG

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!

Thanks in advance

#1980131

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mohammed,

Thank you for getting in touch.

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/

Thanks,
Shane