{{ __('Admin') }} {{ __('Settings') }} {{ __('WooCommerce') }}
{{ __('CMD K') }}
@if (session('success'))
{{ session('success') }}
@endif @if (isset($errors) && $errors->any())
{{ $errors->first() }}
@endif
@csrf
{{ __('Admin · Project settings') }}

{{ __('WooCommerce') }} {{ __('settings') }}.

{{ __("WooCommerce doesn't need any central app credentials — each merchant generates their own REST API keys inside their own WC admin. Your job here is just to flip the platform-level switch and (optionally) review usage.") }}

{{ __('All settings') }}
{{-- Feature toggle --}}
{{ __('woocommerce · platform toggle') }}

{{ __('Enable WooCommerce') }}

When enabled, workspace owners see the {{ __('Connect now') }} button on the {{ __('Integrations') }} page and can paste their store URL + Consumer Key + Consumer Secret at /woocommerce. Each connection is workspace-scoped — keys are encrypted at rest and only used to call that store's REST API.
{{-- Step-by-step admin guide --}}
{{ __('walkthrough you can share with merchants') }}

{{ __('How merchants generate their keys') }}

{{ __('Every WooCommerce store handles its own auth. Customers walk through these five steps inside their own WC admin — :app never sees these keys until the customer pastes them at', ['app' => \App\Models\SystemSetting::get('app_name', config('app.name', 'WaDesk'))]) }} /woocommerce.

  1. 1
    {{ __("Log into the merchant's WordPress admin") }}

    They need {{ __('manage_options') }} capability (typically the shop owner / store admin role). HTTPS must be on — Basic Auth is rejected over plain HTTP.

  2. 2
    {{ __('Open') }} {{ __('WooCommerce → Settings → Advanced → REST API') }}

    Click {{ __('Add key') }}. The form asks for a description, a WordPress user, and a permission level.

  3. 3
    {{ __('Fill in the form') }}

    {{ __('Description: :app integration', ['app' => \App\Models\SystemSetting::get('app_name', config('app.name', 'WaDesk'))]) }}, {{ __('User: shop owner') }}, {{ __('Permissions: Read/Write') }}. {{ __('Read/Write is required so :app can register webhooks back to the store.', ['app' => \App\Models\SystemSetting::get('app_name', config('app.name', 'WaDesk'))]) }}

  4. 4
    {{ __('Generate and copy both keys') }}

    Click {{ __('Generate API key') }}. WooCommerce shows the {{ __('Consumer Key') }} (starts with {{ __('ck_') }}) and {{ __('Consumer Secret') }} (starts with {{ __('cs_') }}). {{ __('The secret only displays once') }} — they must copy it before leaving the page.

  5. 5
    {{ __('Paste at') }} /woocommerce {{ __('in') }} {{ \App\Models\SystemSetting::get('app_name', config('app.name', 'WaDesk')) }}

    Store URL + Consumer Key + Consumer Secret. Hit {{ __('Test connection') }} first to verify, then {{ __('Connect store') }}. We hit /wp-json/wc/v3/system_status to verify, then register webhooks for the topics they pick.

{{-- Usage --}}
{{ __('usage') }}

{{ __('Live across workspaces') }}

{{ __('Stores connected') }}
{{ number_format($integrationsCount) }}
{{ __('Active automations') }}
{{ number_format($eventsCount) }}
{{ __('Webhook events received') }}
{{ number_format($logsCount) }}