Sale price schedule
-
Hi,
I have imported sale prices with ‘sale_price_dates_from’ and ‘sale_price_dates_to’ dates to schedule the sale price via CSV Import. To end a sale manually, I import a ‘sale_price_dates_to’ using a date that has already expired. Normally, the schedule is then cleared from the product settings, so there is no sale price value and no sale start and sale end dates.
This time, the sale price and sale start & end dates are still in the product settings?
https://snipboard.io/TY3VDf.jpg
I looked at running the woocommerce_scheduled_sales action via WP Crontrol, however it looks like that action has been deprecated: https://woocommerce.github.io/code-reference/namespaces/default.html#function_woocommerce_scheduled_sales
I have also tried clearing the Woocommerce and WordPress expired transients from Woocommerce > Status > Tools, however the sale price and scheduled dates are still on the product page settings.
Questions:
Is there a new action that triggers the sale start / end schedule that I can manually trigger?
I see a ‘cancel schedule’ link on the sale price settings, can this be run in bulk e.g. via import or an action, as I have hundreds of products so doing this manually is not an option?
Woocommerce 9.1.4
WordPress 6.6.1
Many thanks.
- You must be logged in to reply to this topic.