Fix WhatsApp Trigger & Customize WooCommerce Order Confirmation Page

Customer: AI | Published: 01.10.2025

Project Overview: We are running a WordPress site with WooCommerce + Amelia Booking + PayU + Twilio WhatsApp integration. The WhatsApp integration is currently firing too early (before payment), and we also want to improve/customize the WooCommerce Thank You / Order Confirmation page. This is a small but important fix to improve customer experience and reduce booking cancellations. --- Tasks Required: 1. WhatsApp Integration Fix (Twilio + Amelia) Current code is inside functions.php of Astra Child Theme. WhatsApp confirmation triggers immediately when booking is created. We want to change it so that: WhatsApp confirmation is only sent after payment success (WooCommerce order status = Completed or Amelia booking status = Approved). Optional: Add a 2–3 minute delay before sending WhatsApp. Ensure no message is sent if the booking is cancelled or payment fails. Clean up/optimize existing WhatsApp hooks (amelia_after_booking_added → should become AmeliaAppointmentBookingStatusUpdated or woocommerce_order_status_completed). --- 2. WooCommerce Order Confirmation Page (Thank You Page) On successful order, the confirmation page is showing raw refund form HTML code. We want to: Remove the extra refund-related code. Clean up and style the confirmation page to look professional (only show booking/payment success info). Optional: Add a short custom thank you message and booking details (service, date, time). --- Tech Details: WordPress Theme: Astra Child Booking Plugin: Amelia Payments: WooCommerce + PayU WhatsApp: Twilio API (custom code in child theme functions.php) Hosting: Bluehost (cPanel access available) --- Deliverables: 1. Corrected WhatsApp logic → message after payment success only. 2. Optional delay of 2–3 minutes before sending. 3. Clean WooCommerce Thank You page (remove raw code, show clear confirmation). 4. Short documentation of changes (which hooks were used, which files updated). Skills Required: Strong PHP & WordPress (theme customization, WooCommerce hooks). Experience with WooCommerce REST API & Amelia Booking plugin. Experience with Twilio WhatsApp API. Ability to debug theme overrides (thankyou.php, hooks, cron jobs). --- Note: This is a focused, short project. Please provide examples of similar WooCommerce/Twilio/Booking integrations you’ve done.