Skip to content

Salla Integration

Coming Soon

The official Salla plugin is under development. Check the Changelog for release announcements.

Overview

The Salla plugin connects your Salla store to CubeConnect, enabling automated WhatsApp notifications for your customers.

Planned Features

Order Notifications

  • Order confirmation messages
  • Payment confirmation
  • Shipping notifications with tracking links
  • Delivery confirmation

Customer Engagement

  • Abandoned cart recovery messages
  • Post-purchase review requests
  • Promotional campaign messages

Support

  • Route customer inquiries to conversation flows
  • Connect support tickets to live chat

How It Will Work

  1. Install the CubeConnect app from the Salla App Store
  2. Connect your CubeConnect account
  3. Select which WhatsApp templates to use for each event
  4. Customize message triggers and conditions

Manual Integration

Until the plugin is available, you can integrate Salla with CubeConnect manually:

Step 1: Set Up Salla Webhooks

Configure Salla to send webhooks for order events to your server.

Step 2: Process Webhooks

Create a webhook handler that extracts order data and calls the CubeConnect API:

php
// Example: Handle Salla order webhook
Route::post('/webhooks/salla', function (Request $request) {
    $event = $request->input('event');
    $data = $request->input('data');

    if ($event === 'order.created') {
        $phone = $data['customer']['mobile'];
        $orderId = $data['reference_id'];
        $total = $data['amounts']['total']['amount'];

        Http::withToken(env('CUBECONNECT_API_KEY'))
            ->post('https://cubeconnect.io/api/v1/messages/send', [
                'phone' => $phone,
                'message_type' => 'template',
                'data' => [
                    'name' => 'order_confirmation',
                    'params' => [$orderId, $total . ' SAR'],
                ],
            ]);
    }

    return response('OK', 200);
});

Step 3: Create Templates

Create WhatsApp message templates in your CubeConnect dashboard for each notification type.

Requirements

  • Active CubeConnect subscription
  • Salla store (any plan)
  • Approved WhatsApp message templates

CubeConnect WhatsApp Business Platform