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:

3) Change the date format of WPUF date field.

Refer Screenshot:

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

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

GeSHi Error: GeSHi could not find the language php (using path /home/mahbktbn/public_html/wp-content/plugins/codecolorer/lib/geshi/) (code 2)

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.

By Mahbubur Rahman

Self Taught Programmer And Learning Enthusiast

Leave a comment

Your email address will not be published. Required fields are marked *