Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Autocompleting booking

Discussion in 'Misc WordPress Requests' started by Marek Aleszczyk, Mar 1, 2018.

  1. Marek Aleszczyk

    Guest

    Reply To: Autocompleting booking, by Marek Aleszczyk

    Hi @donrucastle


    While I have had it inserted correctly, it is not running correctly. I originally assumed it would change all orders even dating back to the start of the site to complete if it had a booking. This did not happen. I then waited for a recent booking to complete to see if it would do the same for the order. Unfortunately, it did not.

    There was a little bug in the code :), sorry for that. In the last line ‘wc_booking_complete’ should be ‘wc-booking-complete’. I have updated the gist.

    If you want to change the status of all orders dating back, uncomment the last line of my gist. I haven’t tested it for large amount of orders. If you send emails when an order becomes complete, all emails will be send, is it what you excpect ?

    Please let me know if it works.

    Reply To: Autocompleting booking
     
    #1

Share This Page

Monarch Social Sharing Plugin