When you’re using WC Vendors Pro plugin + WooCommerce Simple Auction extension, you might wants to change the calendar into a day range. For example : 1 Day, 3 Days, 7 Days, etc.

Still didn’t get what I mean? Please see the sample below.

How to do that?

What we need to do is go to wp-content/plugins/wc-vendors-pro-simple-auctions/class-wcv-simple-auctions.php and add these following pieces of code.

First, we need to build the form, here is the example :

Next, after we have the form, we need to pass the value to the database. Here is the tricks :

As you can see, on the default form we have Start Date and End Date. With this modified system, we will always use today’s date as the Start Date. And we will count the user’s selection as the End Date. For example, if we chose 3 Days, then the End Date will be today’s date + 3 days. Simple.

I hope it useful for anyone who wants to achieve the same thing.

Any questions? Feel free to leave your comment on the form below. 😉