# fluent-cart/1.6.4/app/Modules/Integrations/AddOnModule.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.6.4. 65 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/app/Modules/Integrations/AddOnModule.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.6.4/raw/app/Modules/Integrations/AddOnModule.php
- Modified: 2025-10-14T16:36:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/app/Modules/Integrations/AddOnModule.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Modules\Integrations;

use FluentCart\Framework\Support\Arr;
use FluentCart\App\Vite;


class AddOnModule
{
    /**
     * Show the add-ons list.
     */
    public static function showAddOns(): array
    {
        $addOns = apply_filters('fluent_cart/integration/order_integrations', []);

        return [
            'addOns' => $addOns
        ];
    }

    public function updateAddOnsStatus($request): array
    {
        $addons = wp_unslash(Arr::get($request, 'addons'));
        fluent_cart_update_option('fluent_cart_global_integrations', $addons);

        return [
            'message' => __('Status successfully updated', 'fluent-cart')
        ];
    }


    public static function getPremiumAddOns(): array
    {
        return [];
    }

    public static function getFluentCrm(): array
    {
        return [
            'fluent-crm' => [
                'title'        => __('Fluent CRM', 'fluent-cart'),
                'description'  => __('Connect FluentCRM with FluentCart and subscribe a contact when a form is submitted', 'fluent-cart'),
                'logo'         => Vite::getAssetUrl('images/integrations/fluentcrm.svg'),
                'enabled'      => 'yes',
                'purchase_url' => 'https://wordpress.org/plugins/fluent-crm/',
                'category'     => 'crm',
                'btnTxt'       => __('Install & Activate', 'fluent-cart')
            ]
        ];
    }

    // public static function isModuleEnabled($module = 'slack')
    // {
    //     $globalModules = fct_get_option('fluent_cart_global_integrations');
    //     return $globalModules && isset($globalModules[$module]) && $globalModules[$module] == 'yes';
    // }

    public static function getFluentSupport()
    {
        return [];
    }
}

```
