@extends('layouts.app') @section('title', 'WooCommerce Integration Settings') @push('head') @endpush @section('content')

WooCommerce Integration Settings

@if($integration && $integration->isActive())
Connected! Your WooCommerce store is connected and active.
Site URL: {{ $integration->site_url }}

Disconnect Integration

Disconnecting will remove all webhooks and stop receiving order notifications.

Notification Settings

Order Notifications
getNotificationTypes() ?? []) ? 'checked' : '' }}>
getNotificationTypes() ?? []) ? 'checked' : '' }}>
getNotificationTypes() ?? []) ? 'checked' : '' }}>
Additional Notifications
getNotificationTypes() ?? []) ? 'checked' : '' }}>
getNotificationTypes() ?? []) ? 'checked' : '' }}>

Test Integration

Your WooCommerce integration is connected and ready to receive order notifications.

@else

Connect WooCommerce Store

Enter your WooCommerce store URL (e.g., https://your-store.com)
You can generate consumer keys from your WooCommerce admin panel under WooCommerce > Settings > Advanced > REST API
The consumer secret associated with your consumer key

Setup Instructions

How to get your WooCommerce API credentials:
  1. Log in to your WordPress admin panel
  2. Go to WooCommerce > Settings > Advanced > REST API
  3. Click "Add key"
  4. Give your key a description (e.g., "WhatsApp Notifications")
  5. Set the following permissions:
    • Read: Orders, Customers, Products
    • Write: Orders (if needed for status updates)
  6. Click "Generate API key"
  7. Copy the "Consumer key" and "Consumer secret"
  8. Paste them in the form above
Note: Make sure your WooCommerce store has the REST API enabled and is accessible via HTTPS.
@endif
@push('scripts') @endpush @endsection