Plugin Directory

Changeset 3302944


Ignore:
Timestamp:
05/29/2025 12:10:12 PM (10 months ago)
Author:
assistioai
Message:

Update to version 1.0.6

Location:
assistio
Files:
4 edited
23 copied

Legend:

Unmodified
Added
Removed
  • assistio/tags/1.0.6/README.txt

    r3301897 r3302944  
    55Requires at least: 5.8
    66Tested up to: 6.8
    7 Stable tag: 1.0.5
     7Stable tag: 1.0.6
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    140140
    141141== Changelog ==
     142= 1.0.6 =
     143* Debug in authentication token.
    142144= 1.0.5 =
    143145* **Added** five updated screenshots (integration panel, plugin search, activation steps 1–3) 
     
    165167== Upgrade Notice ==
    166168
    167 = 1.0.5 =
     169= 1.0.6 =
    168170Initial release of ASSISTIO. Transform your WooCommerce store with intelligent AI automation. Experience the power of four specialized AI agents working together to optimize your store operations, enhance customer experience, and drive sales growth.
    169171
  • assistio/tags/1.0.6/assistio.php

    r3301891 r3302944  
    77 * Plugin URI: https://assistio.chat/assistio-plugin
    88 * Description: A WooCommerce AI assistant with LLMs and multimodal search to automate support, marketing, inventory and BI. Includes repositionable chatbot, personalization.
    9  * Version: 1.0.5
     9 * Version: 1.0.6
    1010 * Author: Assistio Team
    1111 * Author URI: https://assistio.chat
     
    246246        plugin_dir_url(__FILE__) . 'assets/js/assistio-deactivate.js',
    247247        array('jquery'),
    248         '1.0.5',
     248        '1.0.6',
    249249        true
    250250    );
  • assistio/tags/1.0.6/initsetup.php

    r3301891 r3302944  
    218218            plugin_dir_url(__FILE__) . 'assets/js/assistio-setup.js',
    219219            array('jquery'),
    220             '1.0.5',
     220            '1.0.6',
    221221            true
    222222        );
     
    289289    }
    290290
    291     $integrations = $data['integrations'] ?? [];
    292 
    293     $settings = [
    294         'token' => sanitize_text_field($data['token'] ?? ''),
    295         'key' => sanitize_text_field($data['key'] ?? ''),
    296         'integrations' => $integrations,
    297     ];
     291    if (isset($data['token']) && !empty($data['token'])) {
     292        $settings = [
     293            'token' => sanitize_text_field($data['token'] ?? ''),
     294        ];
     295    }
     296    if (isset($data['key']) && !empty($data['key'])) {
     297        $settings = [
     298            'key' => sanitize_text_field($data['key'] ?? ''),
     299        ];
     300    }
     301    if (isset($data['integrations']) && !empty($data['integrations'])) {
     302        $integrations = $data['integrations'] ?? [];
     303        $settings = [
     304            'integrations' => $integrations,
     305        ];
     306    }
    298307
    299308    if (isset($data['integration']) && !empty($data['integration'])) {
     
    340349    $table = esc_sql($wpdb->prefix . 'woocommerce_api_keys');
    341350
    342     // $result = $wpdb->insert(
    343     //     $table,
    344     //     array(
    345     //         'user_id'         => $user_id,
    346     //         'description'     => $description,
    347     //         'permissions'     => $permissions,
    348     //         'consumer_key'    => wc_api_hash($consumer_key),
    349     //         'consumer_secret' => $consumer_secret,
    350     //         'truncated_key'   => substr($consumer_key, -7),
    351     //     ),
    352     //     array('%d', '%s', '%s', '%s', '%s', '%s')
    353     // );
    354     // if (is_wp_error($result)) {
    355     //     $error_message = $result->get_error_message();
    356     //     assistio_plugin_admin_error_notice(
    357     //         sprintf(
    358     //             esc_html__("Failed to generate API keys. Please contact support!", "assistio"),
    359     //             $error_message
    360     //         )
    361     //     );
    362     //     return;
    363     // }
    364 
    365     // $settings                         = get_option('assistiobot_oauth_settings', array());
    366     // $settings['woo_consumer_key']     = $consumer_key;
    367     // $settings['woo_consumer_secret']  = $consumer_secret;
    368     // update_option('assistiobot_oauth_settings', $settings);
     351    $result = $wpdb->insert(
     352        $table,
     353        array(
     354            'user_id'         => $user_id,
     355            'description'     => $description,
     356            'permissions'     => $permissions,
     357            'consumer_key'    => wc_api_hash($consumer_key),
     358            'consumer_secret' => $consumer_secret,
     359            'truncated_key'   => substr($consumer_key, -7),
     360        ),
     361        array('%d', '%s', '%s', '%s', '%s', '%s')
     362    );
     363    if (is_wp_error($result)) {
     364        $error_message = $result->get_error_message();
     365        assistio_plugin_admin_error_notice(
     366            sprintf(
     367                esc_html__("Failed to generate API keys. Please contact support!", "assistio"),
     368                $error_message
     369            )
     370        );
     371        return;
     372    }
     373
     374    $settings                         = get_option('assistiobot_oauth_settings', array());
     375    $settings['woo_consumer_key']     = $consumer_key;
     376    $settings['woo_consumer_secret']  = $consumer_secret;
     377    update_option('assistiobot_oauth_settings', $settings);
    369378?>
    370379    <div id="user-message"></div>
     
    397406        plugin_dir_url(__FILE__) . 'assets/js/assistio-integration.js',
    398407        array('jquery'),
    399         '1.0.5',
     408        '1.0.6',
    400409        true
    401410    );
  • assistio/tags/1.0.6/script.php

    r3301891 r3302944  
    111111        plugin_dir_url(__FILE__) . 'assets/js/assistio-btn.js',
    112112        array(),
    113         '1.0.5',
     113        '1.0.6',
    114114        true
    115115    );
  • assistio/trunk/README.txt

    r3301897 r3302944  
    55Requires at least: 5.8
    66Tested up to: 6.8
    7 Stable tag: 1.0.5
     7Stable tag: 1.0.6
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    140140
    141141== Changelog ==
     142= 1.0.6 =
     143* Debug in authentication token.
    142144= 1.0.5 =
    143145* **Added** five updated screenshots (integration panel, plugin search, activation steps 1–3) 
     
    165167== Upgrade Notice ==
    166168
    167 = 1.0.5 =
     169= 1.0.6 =
    168170Initial release of ASSISTIO. Transform your WooCommerce store with intelligent AI automation. Experience the power of four specialized AI agents working together to optimize your store operations, enhance customer experience, and drive sales growth.
    169171
  • assistio/trunk/assistio.php

    r3301891 r3302944  
    77 * Plugin URI: https://assistio.chat/assistio-plugin
    88 * Description: A WooCommerce AI assistant with LLMs and multimodal search to automate support, marketing, inventory and BI. Includes repositionable chatbot, personalization.
    9  * Version: 1.0.5
     9 * Version: 1.0.6
    1010 * Author: Assistio Team
    1111 * Author URI: https://assistio.chat
     
    246246        plugin_dir_url(__FILE__) . 'assets/js/assistio-deactivate.js',
    247247        array('jquery'),
    248         '1.0.5',
     248        '1.0.6',
    249249        true
    250250    );
  • assistio/trunk/initsetup.php

    r3301891 r3302944  
    218218            plugin_dir_url(__FILE__) . 'assets/js/assistio-setup.js',
    219219            array('jquery'),
    220             '1.0.5',
     220            '1.0.6',
    221221            true
    222222        );
     
    289289    }
    290290
    291     $integrations = $data['integrations'] ?? [];
    292 
    293     $settings = [
    294         'token' => sanitize_text_field($data['token'] ?? ''),
    295         'key' => sanitize_text_field($data['key'] ?? ''),
    296         'integrations' => $integrations,
    297     ];
     291    if (isset($data['token']) && !empty($data['token'])) {
     292        $settings = [
     293            'token' => sanitize_text_field($data['token'] ?? ''),
     294        ];
     295    }
     296    if (isset($data['key']) && !empty($data['key'])) {
     297        $settings = [
     298            'key' => sanitize_text_field($data['key'] ?? ''),
     299        ];
     300    }
     301    if (isset($data['integrations']) && !empty($data['integrations'])) {
     302        $integrations = $data['integrations'] ?? [];
     303        $settings = [
     304            'integrations' => $integrations,
     305        ];
     306    }
    298307
    299308    if (isset($data['integration']) && !empty($data['integration'])) {
     
    340349    $table = esc_sql($wpdb->prefix . 'woocommerce_api_keys');
    341350
    342     // $result = $wpdb->insert(
    343     //     $table,
    344     //     array(
    345     //         'user_id'         => $user_id,
    346     //         'description'     => $description,
    347     //         'permissions'     => $permissions,
    348     //         'consumer_key'    => wc_api_hash($consumer_key),
    349     //         'consumer_secret' => $consumer_secret,
    350     //         'truncated_key'   => substr($consumer_key, -7),
    351     //     ),
    352     //     array('%d', '%s', '%s', '%s', '%s', '%s')
    353     // );
    354     // if (is_wp_error($result)) {
    355     //     $error_message = $result->get_error_message();
    356     //     assistio_plugin_admin_error_notice(
    357     //         sprintf(
    358     //             esc_html__("Failed to generate API keys. Please contact support!", "assistio"),
    359     //             $error_message
    360     //         )
    361     //     );
    362     //     return;
    363     // }
    364 
    365     // $settings                         = get_option('assistiobot_oauth_settings', array());
    366     // $settings['woo_consumer_key']     = $consumer_key;
    367     // $settings['woo_consumer_secret']  = $consumer_secret;
    368     // update_option('assistiobot_oauth_settings', $settings);
     351    $result = $wpdb->insert(
     352        $table,
     353        array(
     354            'user_id'         => $user_id,
     355            'description'     => $description,
     356            'permissions'     => $permissions,
     357            'consumer_key'    => wc_api_hash($consumer_key),
     358            'consumer_secret' => $consumer_secret,
     359            'truncated_key'   => substr($consumer_key, -7),
     360        ),
     361        array('%d', '%s', '%s', '%s', '%s', '%s')
     362    );
     363    if (is_wp_error($result)) {
     364        $error_message = $result->get_error_message();
     365        assistio_plugin_admin_error_notice(
     366            sprintf(
     367                esc_html__("Failed to generate API keys. Please contact support!", "assistio"),
     368                $error_message
     369            )
     370        );
     371        return;
     372    }
     373
     374    $settings                         = get_option('assistiobot_oauth_settings', array());
     375    $settings['woo_consumer_key']     = $consumer_key;
     376    $settings['woo_consumer_secret']  = $consumer_secret;
     377    update_option('assistiobot_oauth_settings', $settings);
    369378?>
    370379    <div id="user-message"></div>
     
    397406        plugin_dir_url(__FILE__) . 'assets/js/assistio-integration.js',
    398407        array('jquery'),
    399         '1.0.5',
     408        '1.0.6',
    400409        true
    401410    );
  • assistio/trunk/script.php

    r3301891 r3302944  
    111111        plugin_dir_url(__FILE__) . 'assets/js/assistio-btn.js',
    112112        array(),
    113         '1.0.5',
     113        '1.0.6',
    114114        true
    115115    );
Note: See TracChangeset for help on using the changeset viewer.