Skip to main content
Aygul Tech

CartPing documentation

Everything you need to install, connect and run CartPing.

Installation

CartPing needs WordPress 6.0+, WooCommerce 8.0+ and PHP 7.4+.

  1. In WordPress, go to Plugins → Add New and upload the CartPing zip, or search for CartPing.
  2. Click Activate.
  3. Open WooCommerce → CartPing → Settings to connect WhatsApp.

Pro: after purchase you receive a license key by email. Enter it under WooCommerce → CartPing → Account to unlock Pro features.

Connect WhatsApp Cloud API

In WooCommerce → CartPing → Settings, fill in three values from your Meta app:

  • Phone Number ID: Meta → WhatsApp → API Setup.
  • Permanent access token: create a System User in Meta Business Settings and generate a token with the whatsapp_business_messaging permission.
  • App Secret: Meta app → App settings → Basic.

Save, then click Send hello_world to send a test message to your own number.

Webhook setup

The webhook lets CartPing receive delivery receipts and button taps (needed for COD confirmation).

  1. In CartPing settings, copy the Webhook URL and the Verify token.
  2. In Meta → WhatsApp → Configuration, paste both and click Verify and save.
  3. Under webhook fields, subscribe to messages.

Every incoming webhook is checked with an HMAC signature using your App Secret.

Webhook URL
https://YOURSTORE.com/wp-json/cartping/v1/webhook

Message templates

Create these templates in WhatsApp Manager → Message templates. Names, language and the order of variables must match exactly.

Language code. Each template's language in Meta must match the Template language in WooCommerce → CartPing → Settings (default en). If they differ, Meta rejects the message and the error shows in WooCommerce → CartPing → Message log.

Test template. hello_world is Meta's built-in test template, in en_US. You don't create it; CartPing only uses it for Send hello_world.

cart_reminder (Marketing). URL button "Complete order".

VariableFilled withExample
{{1}}Customer first nameSara
{{2}}Cart total, in your store currency$48.00
Button URL {{1}}Recovery token that restores the carta1b2c3d4

cart_reminder_coupon (Marketing). URL button "Get my discount", same URL as above.

VariableFilled withExample
{{1}}Customer first nameSara
{{2}}Cart total$48.00
{{3}}Coupon codeSAVE10
Button URL {{1}}Recovery tokena1b2c3d4

The customer doesn't need to type the coupon: the recovery link applies it to the restored cart automatically. The code is in the message so it can still be used by hand.

order_confirmed and order_delivered (Utility).

VariableFilled withExample
{{1}}Customer first nameSara
{{2}}Order number1042
{{3}}Order total$48.00

cod_confirmation (Utility). Quick replies "Confirm order" and "Cancel order".

VariableFilled withExample
{{1}}Customer first nameSara
{{2}}Order number1042
{{3}}Order total$48.00
cart_reminder (MARKETING)
Hi {{1}}, you left items worth {{2}} in your cart. They're still saved for you — tap below to finish your order in one click.
cart_reminder button URL
https://YOURSTORE.com/?cartping_recover={{1}}
cart_reminder_coupon (MARKETING)
Hi {{1}}, your cart ({{2}}) is about to expire. Use code {{3}} for a special discount — it's applied automatically when you tap below.
order_confirmed (UTILITY)
Hi {{1}}, thanks for your order #{{2}} ({{3}}). We are preparing it now and will message you when it ships.
order_delivered (UTILITY)
Hi {{1}}, your order #{{2}} ({{3}}) has been delivered. We hope you love it!
cod_confirmation (UTILITY)
Hi {{1}}, please confirm your Cash on Delivery order #{{2}} for {{3}}. Tap a button below.

COD confirmation

When enabled, new Cash on Delivery orders are put on hold and the buyer gets the cod_confirmation message.

  • Confirm order moves the order to Processing.
  • Cancel order cancels it automatically and restocks the items.
  • No reply: the order stays On hold. You can confirm it yourself by changing the order status to Processing. Automatic reminders and auto-cancel for unanswered orders are coming in v1.1.

Buttons are signed, and only replies from the phone number on the order are accepted. Every message and reply is listed in WooCommerce → CartPing → Message log.

Developer hooks

Filters and actions to customise CartPing from your theme or a small plugin.

Filters
cartping_message_payload
cartping_reminder_params
cartping_order_params
cartping_normalize_phone
cartping_cod_reply_text
Actions
cartping_message_sent
cartping_cart_closed
cartping_cod_confirmed
cartping_cod_canceled
cartping_incoming_message

Troubleshooting

  • Messages failing: open WooCommerce → CartPing → Message log and read the error on the failed message.
  • Template errors: the template name and language in Meta must match CartPing exactly.
  • Reminders late or missing: low-traffic sites need a real server cron that requests wp-cron.php every 5 minutes.
Example server cron (every 5 minutes)
*/5 * * * * curl -s https://YOURSTORE.com/wp-cron.php > /dev/null

Still stuck?

Contact support with your WordPress and WooCommerce versions and the error from the message log.