|
/ Documentation /Cart Abandonment/ WhatsApp Integration for Cart Abandonment Recovery

WhatsApp Integration for Cart Abandonment Recovery

The WhatsApp Followup feature in Cart Abandonment Recovery Pro enables store owners to automatically send WhatsApp messages to customers who abandon their carts at checkout. Messages are delivered using the Meta (Facebook) WhatsApp Cloud API and pre-approved templates created in Meta Business Manager.

This feature allows multiple follow-up templates with customizable delays, discount coupons, and targeting conditions. A global integration settings section and per-template configuration system provide full control over message automation.

How It Works – The Big Picture

Before diving into setup, here’s what you’re building and why each piece matters:

ComponentWhat It Does
Meta (WhatsApp Cloud API)The platform that actually delivers WhatsApp messages to your customers. You need a Meta Business account to use it.
Message TemplatesPre-written message formats that Meta approves before you can send them. You create these in Meta, then use them in Cart Abandonment Recovery.Cart Abandonment Recovery​
Cart Abandonment Pro PluginDetects when someone leaves without buying, and triggers your approved WhatsApp templates automatically.
Customer Phone ConsentWhatsApp legally requires customers to opt in before you message them. This is captured at checkout.

Time Estimate
The setup has two sides: (1) Setting up your Meta/WhatsApp account and creating message templates, and (2) Connecting those templates to Cart Abandonment RecoCart Abandonment Recovery​. Plan for 30–60 minutes for your first-time setup.

1. Prerequisites

Make sure you have all of the following ready. Missing any one of these will block the setup.

  • Cart Abandonment Recovery Pro – an active Pro license is required. The WhatsApp feature is not available in the free version.
  • Meta (Facebook) Business Account – if you don’t have one, create it at business.facebook.com.
  • WhatsApp Business Account – must be linked to your Meta Business account.
  • A verified phone number – added to your WhatsApp Business account. This is the sender number your customers will see.
  • At least one approved message template – you’ll create this in Meta Business Manager. Templates must be approved before Cart Abandonment Recovery can use them.
  • Phone Number and Phone Consent fields – must be enabled on your WooCommerce checkout page (covered in Step 3).

2. Setting Up Your Meta WhatsApp Account

This is the most technical part of the setup. Follow each sub-step carefully – you’ll be collecting three pieces of information you’ll need later: a Phone Number ID, a WhatsApp Business Account ID, and an Access Token.

2A. Create a Meta Developer App

  1. Log in at Meta for Developers.
  2. Navigate to My Apps > Create App.
  3. Select Business as the app type.
  4. Give your app a name (e.g., “My Store WhatsApp”), then click Create App.
  5. After creation, click Add Product > WhatsApp > Set Up.

2B. Retrieve Phone Number ID and WhatsApp Business Account ID

  1. Go to WhatsApp > Getting Started in your app.
  2. Copy and save somewhere safe the Phone Number ID and WhatsApp Business Account ID.

2C. Create a Permanent Access Token

Important

Why “permanent”? Temporary tokens expire and will break your WhatsApp messages silently. Always generate a token set to “Never” expire.

  1. Visit Meta Business Suite > Settings > Business Settings > Users > System Users.
  2. Create a new system user (e.g., “WhatsApp Bot”) with Admin role.
  3. Add your app as an asset with Full Control.
  4. Generate a new token with permissions: whatsapp_business_messaging and whatsapp_business_management.
  5. Set expiration to Never and copy the token immediately – Meta only shows it once. Store it securely.

2D. Create a WhatsApp Message Template

Message templates are the pre-approved messages Meta allows you to send. You must create and get at least one approved before Cart Abandonment Recovery can send any messages.

  1. Go to Meta Business Suite > Account Tools > Message Templates (or search for “Message Templates” in the search bar).
  2. Click Create Template, choose Marketing (for promotional messages with discounts) or Utility (for transactional/recovery messages).
  3. Add a name (e.g., cart_recovery_reminder) and select the language.
  4. Build your template:
    • Header (optional): A short title or image shown at the top of the message.
    • Body (required): The main message. Use {{1}}, {{2}} etc. as placeholders for dynamic content like customer name, cart total, or recovery link.
    • Buttons (optional): You can add a “Complete Purchase” button that links to the cart recovery URL.
  5. Submit for approval. Approval usually takes a few minutes to a few hours.
Important

Only Approved templates will appear in Cart Abandonment Recovery. If your template shows as Pending or Rejected, it won’t show up in the plugin dropdown. Check your template status in Meta Business Manager before continuing.

3. Enable Phone & Consent Fields on Your Checkout

WhatsApp messages can only be sent to customers who provided their phone number AND explicitly agreed to receive WhatsApp messages at checkout. This is a legal requirement.

1. In your WordPress admin, go to WooCommerce > Cart Abandonment Recovery > Settings.
2. Find the GDPR options and make sure both Phone Number and Phone Consent (GDPR opt-in checkbox) are enabled.

Cart Abandonment Recovery GDPR Setting

3. These fields will now appear on your Checkout page – customers must fill them in and check the box for WhatsApp messages to be sent to them.

Cart Abandonment Recovery Phone Number and GDPR Optin
Note:

Customers who don’t check the consent box will never receive WhatsApp messages – even if they provide a phone number. This is by design to stay compliant with messaging regulations.

4. Configure Global WhatsApp Settings

Now you’ll connect the Meta credentials you collected earlier to the Cart Abandonment Recovery plugin.

Navigate to: WooCommerce > Cart Abandonment Recovery > Settings > Integrations > WhatsApp

Cart Abandonment Recovery WhatsApp Integration Settings

1. Enable WhatsApp – Toggle to activate the feature (default: off).
2. Phone Number ID – Enter the Phone Number ID from Meta Developer App you saved in the earlier step.
3. WhatsApp Business Account ID – Enter your WABA ID from Meta Developer App you saved in the earlier step.
4. Access Token – Enter the permanent token created earlier.
5. WhatsApp Template – Select an approved template from Meta. Use the refresh button to fetch updates.
6. Map Variables – for Header and Body placeholders (e.g., {{1}}, {{2}}), select which Cart Abandonment Recovery data should fill each one:

Available VariableWhat It Inserts
Customer First NameThe first name from the checkout billing fields
Customer Last NameThe last name from the checkout billing fields
Cart TotalThe total value of the abandoned cart
Coupon CodeA discount coupon if configured on the template
Cart Recovery URLThe unique link that restores the customer’s cart

7. Test WhatsApp Message – use this to send a test message to your own phone number and verify the integration works before going live.

5. WhatsApp Follow-up Templates

This is where you define when and how many WhatsApp messages to send after a cart is abandoned. You can create multiple templates with different time delays – for example, a gentle reminder at 1 hour and a discount offer at 24 hours.

Navigate to: WooCommerce > Cart Abandonment Recovery > Follow Up Templates > WhatsApp

Cart Abandonment Recovery WhatsApp Templates

1. Click Create New Template to create your first followup.
2. Template Name – this is just an internal label for your reference (e.g., “1-hour reminder”).
3. WhatsApp Template – choose an approved Meta template from the dropdown.
4. Map Variables – same as in Step 4: assign Cart Abandonment Recovery data to each placeholder in the template.
5. Send This Message – choose how long after abandonment the message should be sent (e.g., 60 minutes, 24 hours).
6. Create Coupon Code (optional) – attach a discount coupon to this template if you want to incentivize purchase.
7. Activate Template – turn this on when you’re ready for it to go live. Inactive templates are saved but don’t send.
8. Repeat to add more followup messages at different delays.

Cart Abandonment Recovery WhatsApp Templates Settings

6. Test Before Going Live

Before real customers see your messages, test the full flow:

  1. Open your store in an incognito/private browser window.
  2. Add a product to cart and go to Checkout page.
  3. Fill in your own name, email, and real phone number (in international format, e.g., +919876543210).
  4. Check the WhatsApp consent checkbox.
  5. Close the browser tab without completing the purchase.
  6. Wait for the time delay you set on your first template to pass.
  7. Check your WhatsApp – you should receive the message.
Phone Format:

Phone number format matters! The number must include the country code (e.g., +91 for India, +1 for US). Cart Abandonment Recovery tries to auto-add this based on billing country, but asking customers to enter their full number including country code is safest.

7. Unsubscribe / Opt-Out

Customers who unsubscribe from one channel (WhatsApp, SMS, or email) are unsubscribed from all recovery messages for that abandoned cart session. You don’t need to manage this separately per channel.

8. Troubleshooting – Common Problems & Fixes

8A: Template dropdown is empty

  • Check credentials – Make sure Phone Number ID, Business Account ID, and Access Token are all saved in Settings.
  • Click Refresh – Use the refresh button next to the template dropdown to fetch from Meta.
  • Check template status – Only templates with Approved status in Meta Business Manager appear here. Pending or Rejected templates are excluded.

8B:Test message works, but live messages aren’t sending

  • Toggle check – Confirm the WhatsApp Enable toggle is turned ON in global settings.
  • Template activation – Make sure at least one followup template has “Activate Template” turned on.
  • Customer consent – The customer must have checked the phone consent checkbox at checkout. Without it, no message is sent – even if a phone number was entered.

8C: Customer didn’t receive the message

  • Phone number format – Must include country code (e.g., +91XXXXXXXXXX, +1XXXXXXXXXX). Missing the country code will cause silent delivery failure.
  • No consent given – Customer didn’t check the consent checkbox at checkout.
  • WhatsApp not installed – The customer’s phone number must be registered and active on WhatsApp. If they don’t have the app, delivery fails.
  • Template status changed – If the Meta template was edited or rejected after being selected in the plugin, messages will stop working. Re-check the template’s status in Meta.

8D: Access token expired or became invalid

  • Go back to Meta Business Suite > Settings > Business Settings > Users > System Users and regenerate a new token with the same permissions.
  • Update the token in Cart Abandonment Recovery > Integrations > WhatsApp and save.
  • Send a test message to confirm it works again.

9. Frequently Asked Questions

What You Need to DoWhere to Go
Enable WhatsApp & enter credentialsWooCommerce > Cart Abandonment Recovery > Settings > Integrations > WhatsApp
Create / manage followup templatesWooCommerce > Cart Abandonment Recovery > WhatsApp
Enable phone & consent fieldsWooCommerce > Cart Abandonment Recovery > Settings
Create / manage message templatesMeta Business Suite > Account Tools > Message Templates
Generate / renew access tokenMeta Business Suite > Settings > System Users
Find Phone Number ID & WABA IDMeta Developer App > WhatsApp > Getting Started
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page