🚀 Hostinger Optimized
🖥️ Server: LiteSpeed
💻 System: Linux s20058.bom1.stableserver.net 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64
👤 User: skhata (1324)
🐘 PHP: 8.4.20
🚫 Disabled: ✨ NONE

💻 Terminal

📁 /home/skhata/chandrasons.com/public
$

📄 multivendor.php

📁 Path: //home2/skhata/new.chandrapharma.com/config/multivendor.php
📊 Size: 2.47 KB
🔒 Perm: 0644
📝 MIME: text/x-php
<?php

/**
 * Multi-Vendor configuration.
 *
 * MULTI_VENDOR=true  → marketplace mode: vendor switcher, vendor registration,
 *                      commission splits, per-vendor dashboards are all enabled.
 * MULTI_VENDOR=false → single-vendor store: GlobalVendorScope still enforces
 *                      DEFAULT_VENDOR_ID on every query, but the storefront
 *                      shows no vendor branding / switcher.
 */
return [

    /*
    |--------------------------------------------------------------------------
    | Multi-Vendor Mode
    |--------------------------------------------------------------------------
    */
    'enabled' => (bool) env('MULTI_VENDOR', true),

    /*
    |--------------------------------------------------------------------------
    | Default Vendor ID
    |--------------------------------------------------------------------------
    | Used when MULTI_VENDOR=false to scope every query to a single vendor,
    | or as a fallback when no vendor context can be resolved from the request.
    */
    'default_vendor_id' => (int) env('DEFAULT_VENDOR_ID', 1),

    /*
    |--------------------------------------------------------------------------
    | Commission
    |--------------------------------------------------------------------------
    | Platform commission percentage taken from each vendor sale.
    | Can be overridden per-vendor in the vendors table.
    */
    'default_commission_rate' => env('DEFAULT_COMMISSION_RATE', 10), // percent

    /*
    |--------------------------------------------------------------------------
    | Vendor Registration
    |--------------------------------------------------------------------------
    */
    'registration' => [
        'enabled'          => (bool) env('VENDOR_REGISTRATION_ENABLED', true),
        'require_approval' => (bool) env('VENDOR_REQUIRE_APPROVAL', true),
        'kyc_required'     => (bool) env('VENDOR_KYC_REQUIRED', false), // Phase 1: optional
    ],

    /*
    |--------------------------------------------------------------------------
    | Vendor Plan Limits (Phase 4)
    |--------------------------------------------------------------------------
    */
    'plans' => [
        'free'       => ['products' => 10,   'images_per_product' => 3],
        'basic'      => ['products' => 100,  'images_per_product' => 8],
        'pro'        => ['products' => 1000, 'images_per_product' => 15],
        'enterprise' => ['products' => -1,   'images_per_product' => -1], // unlimited
    ],

];
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨