المقالات متاحة باللغة الإنجليزية.
How to Test WooCommerce
Test WooCommerce account setup, order-created webhook delivery, WhatsApp template rules, activity, and delayed sending.
Last updated
On this page
Before You Start
- Prepare a WooCommerce store where you can create test orders.
- Create and approve a WhatsApp template in WAPI, for example: Hi {{1}}, your order {{2}} has been received. Total: {{3}}.
- Use a safe WhatsApp-capable customer phone number in country-code format, for example 923XXXXXXXXX.
Add the WooCommerce Account
- Open Integration Marketplace > WooCommerce > Accounts.
- Click Add Account.
- Enter the store label, store URL, consumer key, consumer secret, and a strong webhook secret.
- Save the account.
- Confirm the saved account row shows Account ID, status, webhook URL copy action, and webhook secret copy action.
Create the WAPI Rule
- Open WooCommerce > Mappings/Rules & Jobs.
- Click Add Rule.
- Select the saved WooCommerce account.
- Choose Order Created as the event.
- Choose Send WhatsApp template as the action.
- Choose Customer Billing Phone or another order phone source as the recipient.
- Select the approved WhatsApp template.
- Map every template variable, for example {{1}} to Billing First Name, {{2}} to Order Number, and {{3}} to Order Total.
- Choose Send immediately for the first test and save the enabled rule.
Place and Confirm a Test Order
- Place one test order in WooCommerce using the safe WhatsApp-capable phone number.
- Return to WAPI and open WooCommerce > Mappings/Rules & Jobs.
- Confirm Job History shows the order event as processed.
- Open Recent Activity and confirm the WooCommerce event appears.
- Confirm the WhatsApp message arrives on the test phone.
Test a Delayed Rule
- Edit the same rule and change Timing to Delay by minutes.
- Enter a short delay such as 5 minutes and save.
- Place another safe test order.
- Wait until the due time has passed.
- Open Settings > Cron Worker and run Connector Delayed Automation if you want to process due delayed jobs manually.
- Confirm the delayed WhatsApp message arrives after the due time.
What to Check if It Fails
- Confirm WooCommerce webhook status is Active.
- Confirm the Delivery URL and Secret came from the same WAPI saved account row.
- Confirm the WAPI rule is enabled and uses the same event WooCommerce sends.
- Confirm every template variable is mapped.
- Confirm the customer phone number is present and can receive WhatsApp.
Next ArticleHow to Test Shopify