You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue includes adding a feature to let customers set a custom update schedule for each Product Set.
Analysis
Currently there is a global setting for update interval at WordPress Dashboard > Product Sets > Configuration > Update Interval
When the dfrps_cron hook fires it will pull one PS post to process based on the _dfrps_cpt_next_update_time meta. The post is updated or deleted based on post status. Trashed posts have their products deleted and will not get a next update time. At the end of phase 5 of the update the next update meta is set by dfrps_get_next_update_time().
Proposed changes
Add a meta box to the PS CPT to let store managers enable a custom schedule. The schedule will include the following configuration options:
Field
Type
Default
Values
Enabled
checkbox
no
yes, or no
Interval
radio button
Day of week
'Day of week' or 'Day of the month'
Days (if Day of week selected)
multi select
blank
One line for each day of week. Value stored as 0-6.
Days (if Day of the)
multi select
blank
One line for day of month 1 to 28.
Time (HH:MM)
select
00:00
First select will have 0-24 for hour, 0-60 for minutes.
Update dfrps_get_next_update_time() to check the post for a custom update time, if not found use the global setting.
The text was updated successfully, but these errors were encountered:
Overview
This issue includes adding a feature to let customers set a custom update schedule for each Product Set.
Analysis
Currently there is a global setting for update interval at WordPress Dashboard > Product Sets > Configuration > Update Interval
When the
dfrps_cron
hook fires it will pull one PS post to process based on the_dfrps_cpt_next_update_time
meta. The post is updated or deleted based on post status. Trashed posts have their products deleted and will not get a next update time. At the end of phase 5 of the update the next update meta is set bydfrps_get_next_update_time()
.Proposed changes
dfrps_get_next_update_time()
to check the post for a custom update time, if not found use the global setting.The text was updated successfully, but these errors were encountered: