Deploy Ladill Woo Manager / deploy (push) Successful in 39s
Agencies can invite store-scoped managers via Identity, with access limited to one WooCommerce store while owners retain full multi-store control. Co-authored-by: Cursor <cursoragent@cursor.com>
50 lines
1.7 KiB
PHP
50 lines
1.7 KiB
PHP
<?php
|
|
|
|
return [
|
|
'plugin_client_id' => env('WOO_MANAGER_PLUGIN_CLIENT_ID'),
|
|
'plugin_client_secret' => env('WOO_MANAGER_PLUGIN_CLIENT_SECRET'),
|
|
'install_token_ttl_minutes' => (int) env('WOO_INSTALL_TOKEN_TTL', 10),
|
|
'webhook_topics' => [
|
|
'order.created',
|
|
'order.updated',
|
|
'product.created',
|
|
'product.updated',
|
|
'product.deleted',
|
|
'product_category.created',
|
|
'product_category.updated',
|
|
'product_category.deleted',
|
|
],
|
|
|
|
'pro' => [
|
|
'enabled' => filter_var(env('WOO_PRO_ENABLED', true), FILTER_VALIDATE_BOOLEAN),
|
|
'price_minor' => (int) env('WOO_PRO_PRICE_MINOR', env('INVOICE_PRO_PRICE_MINOR', 4900)),
|
|
'currency' => env('WOO_PRO_CURRENCY', 'GHS'),
|
|
'period_days' => (int) env('WOO_PRO_PERIOD_DAYS', 30),
|
|
'grace_days' => (int) env('WOO_PRO_GRACE_DAYS', 3),
|
|
],
|
|
|
|
'plans' => [
|
|
'pro' => ['price_minor' => (int) env('WOO_PRO_PRICE_MINOR', env('INVOICE_PRO_PRICE_MINOR', 4900))],
|
|
'enterprise' => ['price_minor' => (int) env('WOO_ENTERPRISE_PRICE_MINOR', env('INVOICE_ENTERPRISE_PRICE_MINOR', 14900))],
|
|
],
|
|
|
|
'prepaid_months' => [6, 12, 24],
|
|
|
|
'free' => [
|
|
'max_stores' => (int) env('WOO_FREE_MAX_STORES', 1),
|
|
'max_products' => (int) env('WOO_FREE_MAX_PRODUCTS', 20),
|
|
],
|
|
|
|
'roles' => [
|
|
'manager' => 'Store manager — assigned store only',
|
|
],
|
|
|
|
'upgrade_banner' => [
|
|
'title' => 'Unlock Woo Manager Pro or Business',
|
|
'description' => 'Multiple stores and unlimited products — from GHS 49/mo.',
|
|
'route' => 'woo.pro.index',
|
|
],
|
|
|
|
'integrations_cache_ttl_seconds' => (int) env('WOO_INTEGRATIONS_CACHE_TTL', 300),
|
|
];
|