← Back to Documentation

Coheto Orders Chat – For WooCommerce (Free Documentation)

Coheto Orders Chat – For WooCommerce

Coheto Orders Chat – For WooCommerce automatically redirects customers to WhatsApp after they complete an order on your WooCommerce store, opening a pre-filled order confirmation message ready for the customer to review and send directly to your store.

1. Requirements & Compatibility

  • WordPress: 6.5 or higher (tested up to 7.1)
  • WooCommerce: 8.2 or higher (tested up to 11.3)
  • PHP: 8.1 or higher
  • WooCommerce Compatibility: High-Performance Order Storage (HPOS), Classic Checkout, and WooCommerce Cart & Checkout Blocks.

2. Installation

Automatic Installation (WordPress.org)

  1. Log in to your WordPress admin dashboard and go to Plugins → Add New.
  2. Search for Coheto Orders Chat – For WooCommerce.
  3. Click Install Now and then Activate.
  4. Navigate to WooCommerce → WhatsApp Orders to configure your store number.

Manual Installation (.zip)

  1. Go to Plugins → Add New → Upload Plugin.
  2. Select the coheto-orders-chat.zip file and click Install Now.
  3. Click Activate Plugin and open WooCommerce → WhatsApp Orders.

3. Configuring Your WhatsApp Number

  1. Go to WooCommerce → WhatsApp Orders → General Settings.
  2. In Store WhatsApp Number, select your country code from the dropdown list (e.g., +1, +34, +52, +57).
  3. Enter your phone number using digits only, without spaces, dashes, or leading zeros.
  4. Click the Test Connection button to open a test WhatsApp chat in a new tab and confirm your number works before saving.

The Test Connection feature uses a static test message and does not include customer or order information.

4. Customizing the Order Message Template

Use the Message Template field to customize the text customers see when WhatsApp opens after placing an order. As you type, the Live Preview box below the editor shows how the message will look with sample order data.

Available Variables (Free Version)

  • {customer_name} — Customer’s full billing name.
  • {order_number} — WooCommerce order number.
  • {order_total} — Formatted order total with currency symbol.
  • {products} — Compact comma-separated list of ordered products and quantities (e.g., Product A x2, Product B x1).
  • {billing_address} — Formatted customer billing address.
  • {shipping_address} — Formatted customer shipping address.
  • {payment_method} — Selected WooCommerce payment method title.

Formatting tip: Wrap any word or placeholder in asterisks (for example, *#{order_number}*) to display it in bold inside WhatsApp.

5. Redirect & Fallback Button Settings

  • Auto Redirect: When enabled, customers are automatically redirected to WhatsApp on their first visit to the Order Received (Thank You) page. The plugin records the automatic redirect locally to help prevent duplicate redirects when the page is refreshed or revisited using the browser Back button.
  • Redirect Delay (0–20 seconds): Set how many seconds the countdown waits before opening WhatsApp. Set to 0 for an immediate redirect.
  • Popup-Blocker Fallback Button: The manual Send order via WhatsApp button is displayed on the order confirmation screen. If a desktop browser blocks the automatic popup window, the plugin detects it, hides the countdown, and highlights the manual button automatically.
  • Customizable Texts: Customize the Thank You Page Title, Message, Button Text, Countdown Message (using %s for the remaining seconds), and Fallback Help Text.

6. Developer Filters & Hooks

Developers can customize the plugin behavior and extend its administration interface using the following WordPress filters and hooks.

Core Filters

  • coheto_orders_whatsapp_message( string $message, array $order_data ) — Modify the formatted WhatsApp order message before URL encoding.
  • coheto_orders_whatsapp_phone( string $phone, array $settings ) — Dynamically route orders to different WhatsApp phone numbers.
  • coheto_orders_whatsapp_url( string $url, int $order_id, array $order_data ) — Filter the final WhatsApp URL.
  • coheto_orders_button_html( string $html, string $url, string $text ) — Customize the WhatsApp button HTML markup on the Thank You page.
  • coheto_orders_excluded_statuses( array $statuses, WC_Order $order ) — Control which order statuses are excluded from showing the WhatsApp redirect (defaults to failed, cancelled, refunded, trash, checkout-draft).

Admin Integration Hooks

  • coheto_orders_admin_tabs — Register additional tabs inside WooCommerce → WhatsApp Orders.
  • coheto_orders_render_admin_tab — Render the content of custom administration tabs.

These hooks allow compatible extensions, including Coheto Orders Chat Pro, to integrate their settings directly into the plugin administration interface.

7. Privacy & External Services

Coheto Orders Chat processes order information locally within your WordPress installation to prepare the WhatsApp message. The plugin does not send customer or order information to SoftCoheto or Coheto servers and does not make background server-to-server requests to WhatsApp or Google Analytics.

WhatsApp (Meta)

The plugin uses WhatsApp’s external endpoints to open a pre-filled chat:

  • Mobile devices: https://api.whatsapp.com/send
  • Desktop browsers: https://web.whatsapp.com/send

When automatic redirection occurs or a customer manually clicks the WhatsApp button on the order confirmation page, the customer’s browser opens WhatsApp with your store’s phone number and the configured message.

Depending on your message template, the information passed to WhatsApp may include the customer’s name, order number, order total, products, billing address, shipping address, and payment method.

The Test Connection feature opens WhatsApp with your store’s number and a static test message, without customer or order information.

For more information, review the WhatsApp Terms of Service and WhatsApp Privacy Policy.

Google Analytics (Optional)

The plugin does not install or load Google Analytics. However, if your website already has Google Analytics loaded through gtag, clicking the manual WhatsApp button triggers a client-side click event.

The event includes:

  • event_category: CohetoOrders
  • event_label: WhatsApp Manual Click

This event does not include personal customer data or order details. If Google Analytics (gtag) is not available on the page, no event is sent.

For more information, review the Google Analytics Terms of Service and Google Privacy Policy.

Local Order Metadata

The plugin stores local WooCommerce order metadata to track automatic redirects and processed orders. This information remains in your WordPress database and is not transmitted to external services by the plugin.

Plugin options and metadata are deleted when the plugin is uninstalled.

8. Need Advanced Features?

Upgrade to Coheto Orders Chat Pro – For WooCommerce to unlock additional conversion features:

  • Conditional WhatsApp message templates by payment gateway.
  • Direct WhatsApp buttons on Single Product and Cart pages.
  • WhatsApp support button on the Checkout page with live cart and customer details.
  • Exit-Intent Cart Recovery Modal for desktop and mobile shoppers.

Read the PRO Documentation →.