How to create specific time-based conditional payments rule
Time-based rules show or hide payment methods on certain days, dates, or times.
Existing documentation screenshots show a Time Specific group with Day Of Week, Date, and Time. That group is not visible in the current admin condition dropdown screenshot, so its current placement is unconfirmed. The steps below follow the existing article screenshots.
In The Article
Time-specific conditions
The existing documentation screenshot lists these Time Specific fields:
- Day Of Week: days such as Saturday or Sunday.
- Date: a specific date.
- Time: a time of day.
How to create the rule
- Go to WooCommerce > Settings > Payments, then open Conditions and click Add New. Turn on Status and enter a Rule Name.
- In Conditions, choose a time-specific field such as Day Of Week, an operator such as Equal to ( = ), and the values (for example, Sunday and Saturday).
- In Actions, choose Enable Payments Methods or Disable Payments Method. You can add more than one action. Click Save Changes, then test checkout on a matching day or time.
Pro Tips
- Use the exact label Day Of Week (capital O).
- The example screenshot shows the older singular Enable Payments Method label. The current form shows Enable Payments Methods.
- If you cannot find Time Specific in the current dropdown, look later in the list, after the groups that are visible in the settings-map screenshot.
Common Use Cases
1. Offer Cash on Delivery only on weekends
Use Day Of Week Equal to ( = ) Saturday and Sunday, enable Cash on delivery, and disable the other methods, as in the example above.
2. Restrict methods during maintenance hours
Use Time with Disable Payments Method or Enable Payments Methods so only the method you want remains available during those hours. Confirm the exact Time field behavior in your admin, because the documentation screenshot shows the field name but not its value format.
3. Enable a method on a sale date
Use Date with Enable Payments Methods for a method you want to offer only on that date.
FAQs
1. Are time-based conditions in the current admin?
They appear in existing documentation screenshots as Day Of Week, Date, and Time under Time Specific. That group is not visible in the current admin dropdown screenshot.
2. What does the example rule do?
It enables Cash on delivery and disables Direct bank transfer and Check payments when Day Of Week is Saturday or Sunday.
3. Can I select more than one day?
Yes. The example selects both Sunday and Saturday in the same condition.