HEX
Server: Apache/2.4.59 (Debian)
System: Linux keymana 4.19.0-21-cloud-amd64 #1 SMP Debian 4.19.249-2 (2022-06-30) x86_64
User: lijunjie (1003)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wp-content/plugins/erp/includes/Settings/Woocommerce.php
<?php

namespace WeDevs\ERP\Settings;

/**
 * WooCommerce settings class
 */
class Woocommerce extends Template {
    
    /**
     * Constructor function
     *
     * @since 1.0.0
     */
    public function __construct() {
        $this->id     = 'erp-woocommerce';
        $this->label  = __( 'WooCommerce', 'erp-pro' );
        $this->icon   = WPERP_ASSETS . '/images/wperp-settings/woocommerce.png';

        $this->extra  = [
            'notice' => apply_filters( 'erp_wc_integration_notice', $this->get_integration_notice() ),
        ];
    }

    /**
     * Get settings array
     *
     * @return array
     */
    public function get_settings() {
        $country = \WeDevs\ERP\Countries::instance();

        $fields = [];

        return apply_filters( 'erp_settings_woocommerce', $fields );
    }

    /**
     * Get sections fields
     *
     * @since 1.0.0
     *
     * @return array
     */
    public function get_section_fields( $section = '' ) {
        return $this->get_settings();
    }

    /**
     * Gets integration notice
     * 
     * @since 1.2.1
     *
     * @return void
     */
    public function get_integration_notice() {
        $erp_pro_url = 'https://wperp.com/pricing/?nocache&utm_medium=modules&utm_source=erp-settings-page';
        
        return __( "We're Sorry, WooCommerce Integration Is Not<br>Available on WP ERP Free. Please Upgrade to<br><a target='_blank' href='{$erp_pro_url}'>WP ERP Pro</a> to Unlock This feature.", "erp" );
    }
}