CartPing ডকুমেন্টেশন
CartPing ইনস্টল, যুক্ত আর চালানোর জন্য যা যা দরকার।
ডকুমেন্টেশন বর্তমানে ইংরেজিতে।
Installation
CartPing needs WordPress 6.0+, WooCommerce 8.0+ and PHP 7.4+.
- In WordPress, go to Plugins → Add New and upload the CartPing zip, or search for CartPing.
- Click Activate.
- 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_messagingpermission. - 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).
- In CartPing settings, copy the Webhook URL and the Verify token.
- In Meta → WhatsApp → Configuration, paste both and click Verify and save.
- Under webhook fields, subscribe to messages.
Every incoming webhook is checked with an HMAC signature using your App Secret.
https://YOURSTORE.com/wp-json/cartping/v1/webhookMessage 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".
| Variable | Filled with | Example |
|---|---|---|
{{1}} | Customer first name | Sara |
{{2}} | Cart total, in your store currency | $48.00 |
Button URL {{1}} | Recovery token that restores the cart | a1b2c3d4 |
cart_reminder_coupon (Marketing). URL button "Get my discount", same URL as above.
| Variable | Filled with | Example |
|---|---|---|
{{1}} | Customer first name | Sara |
{{2}} | Cart total | $48.00 |
{{3}} | Coupon code | SAVE10 |
Button URL {{1}} | Recovery token | a1b2c3d4 |
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).
| Variable | Filled with | Example |
|---|---|---|
{{1}} | Customer first name | Sara |
{{2}} | Order number | 1042 |
{{3}} | Order total | $48.00 |
cod_confirmation (Utility). Quick replies "Confirm order" and "Cancel order".
| Variable | Filled with | Example |
|---|---|---|
{{1}} | Customer first name | Sara |
{{2}} | Order number | 1042 |
{{3}} | Order total | $48.00 |
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.https://YOURSTORE.com/?cartping_recover={{1}}Hi {{1}}, your cart ({{2}}) is about to expire. Use code {{3}} for a special discount — it's applied automatically when you tap below.Hi {{1}}, thanks for your order #{{2}} ({{3}}). We are preparing it now and will message you when it ships.Hi {{1}}, your order #{{2}} ({{3}}) has been delivered. We hope you love it!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.
cartping_message_payload
cartping_reminder_params
cartping_order_params
cartping_normalize_phone
cartping_cod_reply_textcartping_message_sent
cartping_cart_closed
cartping_cod_confirmed
cartping_cod_canceled
cartping_incoming_messageTroubleshooting
- 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.phpevery 5 minutes.
*/5 * * * * curl -s https://YOURSTORE.com/wp-cron.php > /dev/nullএখনো আটকে আছেন?
সাপোর্টে যোগাযোগ করুন — সাথে আপনার WordPress ও WooCommerce ভার্সন আর মেসেজ লগের এররটি জানান।
