Create appointment from backend doesn't trigger any email

Issue #176 resolved
Valentina R created an issue

Worked before: After creating the appointment with the option 'Create new order', the appointment had to be confirmed and then an automatic email to the client with payment link was sent - notice that this only worked when comfirmation was made with bulk actions. If it was made directly in the 'Edit Appointent', the email was not sent.

Ideally: When adding an appointment with option 'Create new order' the client should receive an email with a payment link automatically.

Right now: After confirming the appointment (only through the Bulk actions), the client gets an email with a payment link. But the payment link (when opened) says that the order status doesn't allow payment, so the client can't pay for it. Opening up the Order (edit order) and saving (without changing anything) allows the payment link to work normally.

Comments (1)

  1. Željan Topić

    This is intentional, since all appointments added in admin have default payment status set to "unpaid". If you want to require customers to pay for this status as well, add it to this filter:

    apply_filters( 'woocommerce_valid_order_statuses_for_payment', array( 'pending', 'failed' ), $this )
    
  2. Log in to comment