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.

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.
The Conditions dropdown open on a Time Specific group, with Day Of Week selected, and Date and Time listed, above an Add Condition button
Figure - An older Conditions dropdown showing Time Specific options

How to create the rule

  1. Go to WooCommerce > Settings > Payments, then open Conditions and click Add New. Turn on Status and enter a Rule Name.
  2. 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).
  3. 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.
A Day Of Week condition set to Equal to Sunday and Saturday, an Enable Payments Method action for Cash on delivery, and a Disable Payments Method action for Direct bank transfer and Check payments
Figure - A weekend rule that enables only Cash on Delivery
Checkout for Chaz Kangeroo Hoodie showing only Cash on delivery, with an annotation to enable only COD and disable others on weekends
Figure - A checkout page showing only Cash on Delivery on a weekend rule

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.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.