How to update WooCommerce sale price dates meta using WPUF date fields

If you are having an issue with updating the schedule dates of WooCommerce product using WPUF fields, you can follow the given instructions to solve this issue.

1) Add two date type field to WPUF form that you created to allow users for uploading products.

2) Insert _sale_price_dates_from & _sale_price_dates_to meta keys accordingly for these two fields.

Refer Screenshot: 
http://prntscr.com/du6fqj

3) Change the date format of WPUF date field.

Refer Screenshot: 
http://prntscr.com/du66dq

4) Now, add the following code inside the theme’s functions.php file.

You will find the code in the following link.

https://gist.github.com/mahbubme/34095d7dec7351fdcaf75d560935652e

Note: This is a Developer level doc. If you are unfamiliar with code/templates and resolving potential conflicts, contact me for assistance

All done, add a product from the frontend with the sales price and insert dates for sales from, sales to fields. The fields data will update properly to WooCommerce sale price dates.

This post originally appeared on Mahbub.me . Follow @mahbub_rabbi on Twitter.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.