Plugin Directory

Changeset 3358354


Ignore:
Timestamp:
09/09/2025 06:50:47 AM (7 months ago)
Author:
ilachat
Message:

Initial v1.2.1 update

Location:
ilachat/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • ilachat/trunk/assets/js/ilachat-editor-sync.js

    r3295364 r3358354  
     1const { allowedPostTypes = [] } = window.ilachatSync || {};
    12const { registerPlugin } = wp.plugins;
    23const { PluginPrePublishPanel, PluginPostStatusInfo } = wp.editPost;
     
    910function IlachatSyncTogglePanel() {
    1011    const postType = wp.data.select('core/editor').getCurrentPostType();
    11     const [meta, setMeta] = useEntityProp('postType', postType, 'meta');
     12    if (!allowedPostTypes.includes(postType)) {
     13        return null;
     14    }
     15    const [rawMeta, setMeta] = useEntityProp('postType', postType, 'meta');
     16    const meta = rawMeta || {};
    1217    const lastSync = meta.ilachat_synced || '';
    1318    const descriptionText = lastSync
     
    3338function IlachatPostSummary() {
    3439    const postType = wp.data.select('core/editor').getCurrentPostType();
    35     const [meta, setMeta] = useEntityProp('postType', postType, 'meta');
     40    if (!allowedPostTypes.includes(postType)) {
     41        return null;
     42    }
     43    const [rawMeta, setMeta] = useEntityProp('postType', postType, 'meta');
     44    const meta = rawMeta || {};
    3645    const lastSync = meta.ilachat_synced;
    3746    const descriptionText = lastSync
  • ilachat/trunk/ilachat.php

    r3295270 r3358354  
    1212 * Plugin URI: https://ila.chat
    1313 * Description: Integrate ILACHAT with WordPress to add AI-powered chatbot and live chat for seamless customer support and engagement.
    14  * Version: 1.2.0
     14 * Version: 1.2.1
    1515 * Requires at least: 6.2
    1616 * Requires PHP: 7.4.0
     
    8181}
    8282
    83 add_action('plugins_loaded', 'ilachat_init');
     83add_action('after_setup_theme', 'ilachat_init');
    8484
    8585/**
  • ilachat/trunk/languages/ilachat.pot

    r3295364 r3358354  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-05-17T19:27:57+02:00\n"
     12"POT-Creation-Date: 2025-09-09T08:29:57+02:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.11.0\n"
     14"X-Generator: WP-CLI 2.12.0\n"
    1515"X-Domain: ilachat\n"
    1616
     
    4040msgstr ""
    4141
    42 #: src/Admin/Admin.php:36
    43 #: src/Admin/Admin.php:46
     42#: src/Admin/Admin.php:37
     43#: src/Admin/Admin.php:47
    4444msgid "Ilachat Settings"
    4545msgstr ""
    4646
    47 #: src/Admin/Admin.php:37
     47#: src/Admin/Admin.php:38
    4848msgid "Ilachat"
    4949msgstr ""
    5050
    51 #: src/Admin/Admin.php:47
    52 #: src/Admin/Admin.php:132
     51#: src/Admin/Admin.php:48
     52#: src/Admin/Admin.php:131
    5353msgid "Settings"
    5454msgstr ""
    5555
    56 #: src/Admin/Admin.php:118
     56#: src/Admin/Admin.php:117
    5757msgid "Are you sure you want to unlink Ilachat from your website?"
    5858msgstr ""
    5959
    60 #: src/Admin/Admin.php:195
     60#: src/Admin/Admin.php:194
    6161msgid "You do not have permission to perform this action."
    6262msgstr ""
    6363
    64 #: src/Admin/Admin.php:203
     64#: src/Admin/Admin.php:202
    6565msgid "Invalid nonce."
    6666msgstr ""
    6767
    68 #: src/Admin/Admin.php:213
     68#: src/Admin/Admin.php:212
    6969msgid "Settings updated successfully."
    7070msgstr ""
    7171
    72 #: src/Admin/Connection.php:79
     72#: src/Admin/Connection.php:80
    7373msgid "Ilachat has been successfully disconnected."
    7474msgstr ""
    7575
    76 #: src/Admin/Connection.php:127
    77 #: src/Admin/Connection.php:133
     76#: src/Admin/Connection.php:128
     77#: src/Admin/Connection.php:134
    7878msgid "Invalid request."
    7979msgstr ""
    8080
    81 #: src/Admin/Connection.php:151
    82 #: src/Admin/Connection.php:157
     81#: src/Admin/Connection.php:152
     82#: src/Admin/Connection.php:158
    8383msgid "Invalid token."
    8484msgstr ""
    8585
    86 #: src/Admin/Connection.php:169
     86#: src/Admin/Connection.php:170
    8787msgid "Ilachat has been successfully connected."
    8888msgstr ""
     
    9595msgstr ""
    9696
    97 #: src/Integrations/Woocommerce.php:330
     97#: src/Integrations/Woocommerce.php:329
    9898msgid "Order tracking is disabled"
    9999msgstr ""
    100100
    101 #: src/Integrations/Woocommerce.php:338
     101#: src/Integrations/Woocommerce.php:337
    102102msgid "Order ID is required"
    103103msgstr ""
    104104
    105 #: src/Integrations/Woocommerce.php:343
     105#: src/Integrations/Woocommerce.php:342
     106#: src/Integrations/Woocommerce.php:350
    106107msgid "Order not found"
    107108msgstr ""
    108109
    109 #: src/Integrations/Woocommerce.php:348
     110#: src/Integrations/Woocommerce.php:356
    110111msgid "Invalid phone number"
    111112msgstr ""
    112113
    113 #: src/Integrations/Woocommerce.php:353
     114#: src/Integrations/Woocommerce.php:361
    114115msgid "Invalid email address"
    115116msgstr ""
    116117
    117 #: src/Integrations/Woocommerce.php:558
    118 #: src/Integrations/Woocommerce.php:632
     118#: src/Integrations/Woocommerce.php:566
     119#: src/Integrations/Woocommerce.php:640
    119120msgid "Please enter a note."
    120121msgstr ""
    121122
    122 #: src/Integrations/Woocommerce.php:559
     123#: src/Integrations/Woocommerce.php:567
    123124msgid "An error occurred while doing the request."
    124125msgstr ""
    125126
    126 #: src/Integrations/Woocommerce.php:560
     127#: src/Integrations/Woocommerce.php:568
    127128#: templates/admin/wc-order-notes.php:38
    128129msgid "Delete note"
    129130msgstr ""
    130131
    131 #: src/Integrations/Woocommerce.php:561
     132#: src/Integrations/Woocommerce.php:569
    132133msgid "Are you sure you want to delete this note? This action cannot be undone."
    133134msgstr ""
    134135
    135 #: src/Integrations/Woocommerce.php:562
     136#: src/Integrations/Woocommerce.php:570
    136137msgid "Pause sync"
    137138msgstr ""
    138139
    139 #: src/Integrations/Woocommerce.php:563
     140#: src/Integrations/Woocommerce.php:571
    140141msgid "Resume sync"
    141142msgstr ""
    142143
    143 #: src/Integrations/Woocommerce.php:564
     144#: src/Integrations/Woocommerce.php:572
    144145msgid "Sync Products"
    145146msgstr ""
    146147
    147 #: src/Integrations/Woocommerce.php:584
     148#: src/Integrations/Woocommerce.php:592
    148149msgid "Ilachat Order Notes"
    149150msgstr ""
    150151
    151 #: src/Integrations/Woocommerce.php:627
     152#: src/Integrations/Woocommerce.php:635
    152153msgid "Invalid order."
    153154msgstr ""
    154155
    155 #: src/Integrations/Woocommerce.php:636
    156 #: src/Integrations/Woocommerce.php:713
     156#: src/Integrations/Woocommerce.php:644
    157157msgid "You do not have permission to add notes to this order."
    158158msgstr ""
    159159
    160 #: src/Integrations/Woocommerce.php:641
     160#: src/Integrations/Woocommerce.php:649
    161161msgid "Failed to add note."
    162162msgstr ""
    163163
    164 #: src/Integrations/Woocommerce.php:709
     164#: src/Integrations/Woocommerce.php:717
    165165msgid "Invalid comment ID."
    166166msgstr ""
    167167
    168 #: src/Integrations/Woocommerce.php:718
     168#: src/Integrations/Woocommerce.php:722
     169msgid "Invalid comment."
     170msgstr ""
     171
     172#: src/Integrations/Woocommerce.php:728
     173msgid "You do not have permission to delete notes on this order."
     174msgstr ""
     175
     176#: src/Integrations/Woocommerce.php:733
    169177msgid "Failed to delete note."
    170178msgstr ""
    171179
    172 #: src/Integrations/Woocommerce.php:1014
    173 #: src/Integrations/Woocommerce.php:1029
    174 #: src/Integrations/Wordpress.php:289
    175 #: src/Integrations/Wordpress.php:304
     180#: src/Integrations/Woocommerce.php:1028
     181#: src/Integrations/Woocommerce.php:1043
     182#: src/Integrations/Wordpress.php:288
     183#: src/Integrations/Wordpress.php:303
     184#: assets/js/ilachat-editor-sync.js:24
     185#: assets/js/ilachat-editor-sync.js:26
     186#: assets/js/ilachat-editor-sync.js:57
     187msgid "Sync with Ilachat"
     188msgstr ""
     189
     190#: src/Integrations/Woocommerce.php:1030
     191#: src/Integrations/Wordpress.php:290
    176192#: assets/js/ilachat-editor-sync.js:19
    177 #: assets/js/ilachat-editor-sync.js:21
    178 #: assets/js/ilachat-editor-sync.js:48
    179 msgid "Sync with Ilachat"
    180 msgstr ""
    181 
    182 #: src/Integrations/Woocommerce.php:1016
    183 #: src/Integrations/Wordpress.php:291
    184 #: assets/js/ilachat-editor-sync.js:14
    185 #: assets/js/ilachat-editor-sync.js:38
     193#: assets/js/ilachat-editor-sync.js:47
    186194msgid "Last synced:"
    187195msgstr ""
    188196
    189197#. translators: %s is the number of products successfully synced with Ilachat.
    190 #: src/Integrations/Woocommerce.php:1096
     198#: src/Integrations/Woocommerce.php:1110
     199#, php-format
    191200msgid "Synced %s product with Ilachat."
    192201msgid_plural "Synced %s products with Ilachat."
     
    195204
    196205#. translators: %s is the number of products that failed to sync with Ilachat.
    197 #: src/Integrations/Woocommerce.php:1110
     206#: src/Integrations/Woocommerce.php:1124
     207#, php-format
    198208msgid "Failed to sync %s product with Ilachat."
    199209msgid_plural "Failed to sync %s products with Ilachat."
     
    201211msgstr[1] ""
    202212
    203 #: src/Integrations/Woocommerce.php:1174
     213#: src/Integrations/Woocommerce.php:1188
    204214msgid "Product data limit reached. Please upgrade your plan."
    205215msgstr ""
    206216
     217#: src/Integrations/Wordpress.php:181
     218msgid "Author"
     219msgstr ""
     220
    207221#: src/Integrations/Wordpress.php:182
    208 msgid "Author"
     222msgid "Categories"
    209223msgstr ""
    210224
    211225#: src/Integrations/Wordpress.php:183
    212 msgid "Categories"
     226msgid "Tags"
    213227msgstr ""
    214228
    215229#: src/Integrations/Wordpress.php:184
    216 msgid "Tags"
     230msgid "Post URL"
    217231msgstr ""
    218232
    219233#: src/Integrations/Wordpress.php:185
    220 msgid "Post URL"
    221 msgstr ""
    222 
    223 #: src/Integrations/Wordpress.php:186
    224234msgid "Featured Image"
    225235msgstr ""
    226236
    227237#. translators: %s is the number of posts successfully synced with Ilachat.
    228 #: src/Integrations/Wordpress.php:379
     238#: src/Integrations/Wordpress.php:378
     239#, php-format
    229240msgid "Synced %s post with Ilachat."
    230241msgid_plural "Synced %s posts with Ilachat."
     
    233244
    234245#. translators: %s is the number of posts that failed to sync with Ilachat.
    235 #: src/Integrations/Wordpress.php:393
     246#: src/Integrations/Wordpress.php:392
     247#, php-format
    236248msgid "Failed to sync %s post with Ilachat."
    237249msgid_plural "Failed to sync %s posts with Ilachat."
     
    253265#. translators: %1$d is the number of days left
    254266#: templates/admin/settings-page.php:41
     267#, php-format
    255268msgid "%1$s days left"
    256269msgstr ""
     
    414427msgstr ""
    415428
    416 #: assets/js/ilachat-editor-sync.js:15
    417 #: assets/js/ilachat-editor-sync.js:39
     429#: assets/js/ilachat-editor-sync.js:20
     430#: assets/js/ilachat-editor-sync.js:48
    418431msgid "This post will be synced with Ilachat when you save it."
    419432msgstr ""
  • ilachat/trunk/readme.txt

    r3295390 r3358354  
    55Tested up to: 6.8
    66Stable tag: 1.2.0
     7Requires at least: 6.2
     8Requires PHP: 7.4.0
    79License: GPL v3
    810License URI: https://www.gnu.org/licenses/gpl-3.0.html
    911
    10 Integrate ILACHAT with WordPress and WooCommerce to enable an AI-powered chatbot and live chat with real-time user data integration.
     12AI-powered chatbot and live chat for WordPress & WooCommerce. Boost support, sales, and lead capture with real-time data.
    1113
    1214== Description ==
    1315
    14 ILACHAT seamlessly integrates with your WordPress and WooCommerce websites, offering a sophisticated AI-powered chatbot and live chat solution. Enhance your customer support with automated, personalized interactions that are always available, significantly improving your response times and customer satisfaction.
    15 By leveraging real-time customer data and order information, ILACHAT ensures your visitors receive accurate, timely, and contextually relevant responses. This powerful combination not only streamlines your customer support operations but also increases user engagement, boosts customer loyalty, and drives higher conversion rates.
     16ILACHAT is a powerful AI chatbot and live chat plugin for WordPress and WooCommerce. It provides 24/7 automated support, increases sales with product recommendations, tracks WooCommerce orders in real time, and captures leads directly from your website.
     17
     18With ILACHAT, you deliver personalized conversations around the clock, improving response times and boosting customer satisfaction. By leveraging real-time customer and order data, the chatbot delivers accurate, timely, and context-aware answers. This combination streamlines your support operations, increases engagement, builds loyalty, and drives conversions.
     19
     20Store-focused chatbots act as virtual sales consultants, guiding shoppers through product selections, offering personalized recommendations, assisting with order tracking, and strengthening customer retention.
    1621
    1722**Benefits of ILACHAT:**
    18 - Offer 24/7 customer support without additional staffing.
    19 - Engage users instantly and personally, boosting satisfaction and retention.
    20 - Enhance sales opportunities by guiding users through the purchasing journey.
    21 - Reduce operational costs through efficient automation.
    22 - Improve response accuracy with real-time WooCommerce data.
    23 - Easily manage and customize chatbot interactions specific to your brand and customer needs.
    2423
    25 Take advantage of ILACHAT to provide unparalleled support, reduce friction in your customer journey, and maximize your business potential.
     24* Provide 24/7 customer support without the need for additional staff.
     25* Engage users instantly with personalized, context-aware conversations.
     26* Drive sales by guiding users through the purchasing journey with tailored product suggestions.
     27* Reduce operational costs through efficient automation.
     28* Improve response accuracy with real-time WooCommerce data integration.
     29* Capture leads directly through the chat widget to grow your customer base.
     30* Enable seamless handoff to human operators when needed.
     31* Support multiple languages for global audiences.
     32* Customize chatbot interactions to align with your brand and customer needs.
     33* Gain actionable insights with interaction analytics to optimize performance.
     34
     35Need more customization or tailored integrations? Contact us at [https://ila.chat/contact/](https://ila.chat/contact/), our team can guide and implement advanced solutions for you.
    2636
    2737**Features:**
    28 - AI-powered chatbot for 24/7 automated support.
    29 - Live chat to engage visitors and drive conversions.
    30 - Automatic WooCommerce product synchronization with ILACHAT.
    31 - Real-time WooCommerce order data accessible by chatbot.
    32 - Customizable user authentication based on email, mobile, or both.
    33 - Dedicated ILACHAT notes section on order pages for chatbot-specific communication.
    34 - Optional sending of lead data (name, email, phone) to ILACHAT.
    35 - Multilingual support.
    36 - Easy and intuitive setup.
    37 - Customizable chat widget to match your website branding.
    38 - Interaction analytics for better insights and optimization.
    3938
    40 Learn more at [ILACHAT](https://ila.chat).
     39* AI-powered chatbot delivering 24/7 automated support.
     40* Live chat functionality to engage visitors and boost conversions.
     41* Automatic synchronization of posts, pages, and custom post types with the ILACHAT knowledge base, ensuring up-to-date content without impacting site speed.
     42* Auto-inserted chat widget on your website with no coding required.
     43* Fully multilingual support: accepts all input languages and responds in your preferred business language.
     44* Customizable widget design, including colors and styles to match your branding.
     45* Lead capture capabilities: collect user details (name, email, phone) directly from the widget.
     46* Human operator support: manually respond to conversations from the ILACHAT panel when needed.
     47* Rich media messaging: send and receive images, voice notes, and emojis through the widget.
     48* Interaction analytics providing valuable insights for continuous optimization.
     49
     50For WooCommerce-specific features, see the dedicated section below.
     51
     52=== WooCommerce Integration ===
     53* Automatically synchronize WooCommerce products with ILACHAT for enhanced sales guidance and personalized product recommendations.
     54* Provide real-time order tracking with instant access to WooCommerce order data, customizable authentication methods (email, phone, or both), and full control over shared information.
     55* Add special chatbot notes on each order, allowing businesses to include custom data for bot usage and reference.
     56
     57Explore all features and view pricing at [https://ila.chat/pricing/](https://ila.chat/pricing/). 
     58For documentation and updates, visit the [ILACHAT official site](https://ila.chat).
    4159
    4260== Installation ==
    4361
    44 1. Upload the plugin files to the `/wp-content/plugins/ilachat` directory, or install the plugin through the WordPress plugins screen.
    45 2. Activate the plugin through the 'Plugins' screen in WordPress.
     621. Upload the plugin files to `/wp-content/plugins/ilachat` or install directly via the WordPress Plugins screen.
     632. Activate the plugin through the "Plugins" menu in WordPress.
    46643. Connect your ILACHAT account in the ILACHAT settings page.
    47 4. Configure WooCommerce settings and customize the chat widget.
    48 5. Enjoy automated and personalized customer interactions.
     654. Configure WooCommerce integration and customize the chat widget.
     665. Start delivering automated and personalized customer interactions.
    4967
    5068== Frequently Asked Questions ==
    5169
    52 = Do I need an ILACHAT account? =
    53 Yes, sign up at [https://ila.chat](https://ila.chat).
     70= Do I need an ILACHAT account to use the plugin? =
     71Yes. You can create a free ILACHAT account at [https://ila.chat](https://ila.chat) and start using the chatbot and live chat immediately.
    5472
    55 = Does it auto-sync WooCommerce products? =
    56 Yes, automatic syncing occurs when products are added or updated.
     73= Is ILACHAT free to use? =
     74Yes, testing and basic usage of ILACHAT is free. To increase message limits and expand the knowledge base capacity, you can upgrade to a paid subscription. See pricing at [https://ila.chat/pricing/](https://ila.chat/pricing/).
    5775
    58 = How does it handle WooCommerce orders? =
    59 It provides real-time order status and allows adding custom notes for chatbot reference.
     76= Does the plugin automatically sync WooCommerce products? =
     77Yes. Products are automatically synchronized with ILACHAT whenever they are added or updated in WooCommerce.
    6078
    61 = Can user authentication be customized? =
    62 Yes, authentication can be based on email, phone number, or both.
     79= Can ILACHAT track and respond to WooCommerce orders? =
     80Yes, the chatbot provides real-time order status updates, and you can add special notes for reference.
    6381
    64 = Does it send user information to ILACHAT? =
    65 Optionally, yes. User lead data can be sent for improved customer service.
     82= Does ILACHAT synchronize posts, pages, and custom post types? =
     83Yes. The plugin automatically syncs your WordPress posts, pages, and custom post types with the ILACHAT knowledge base without affecting your site’s load speed. When you update content on your site, the knowledge base in ILACHAT is updated automatically, keeping chatbot responses accurate and fresh.
    6684
    67 = Can the widget appearance be customized? =
    68 Absolutely, to match your site's branding.
     85= Does the widget collect user information? =
     86Yes, the widget can capture leads such as name, email, and phone number to help grow your customer base.
     87
     88= Can the chat widget appearance be customized? =
     89Yes. You can personalize colors, styles, and branding to match your website.
     90
     91= Does ILACHAT support multiple languages? =
     92Yes, ILACHAT is fully multilingual. It accepts all languages as input and can reply in your preferred business language.
    6993
    7094= Is ILACHAT secure? =
    71 Yes, with enterprise-grade security.
     95Yes, ILACHAT uses enterprise-grade security measures to protect your data and conversations.
     96
     97= Can conversations be handled by human operators too? =
     98Yes. Within the ILACHAT panel, operators can take over conversations and respond manually whenever needed.
     99
     100= Does ILACHAT slow down my website? =
     101No. ILACHAT is optimized for performance, and synchronization happens in the background without affecting your site’s load speed.
    72102
    73103== Changelog ==
     104
     105= 1.2.1 =
     106* Fixed minor bugs and improved performance.
    74107
    75108= 1.2.0 =
     
    81114= 1.1.0 =
    82115* Added WooCommerce integration:
    83   - Automatic product syncing.
    84   - Real-time order data access.
    85   - Customizable user authentication.
    86   - Order-specific chatbot notes.
     116  * Automatic product syncing.
     117  * Real-time order data access.
     118  * Customizable user authentication.
     119  * Order-specific chatbot notes.
    87120* Optional sending of lead data (name, email, phone) to ILACHAT.
    88121* Enhanced real-time user data handling and chatbot accuracy.
  • ilachat/trunk/src/Integrations/Woocommerce.php

    r3295458 r3358354  
    343343        }
    344344
     345        if ($order instanceof \Automattic\WooCommerce\Admin\Overrides\OrderRefund || $order instanceof \WC_Order_Refund) {
     346            $parent_id = $order->get_parent_id();
     347            $order     = $parent_id ? wc_get_order($parent_id) : null;
     348
     349            if (!$order) {
     350                return new WP_Error('no_order', esc_html__('Order not found', 'ilachat'), ['status' => 404]);
     351            }
     352        }
     353
    345354        // Validate the phone number.
    346355        if (get_option('ilachat_woocommerce_order_check_phone_enabled', 0) && Helper::check_phone($order->get_billing_phone()) !== Helper::check_phone($phone_number)) {
     
    709718        }
    710719
     720        $comment   = get_comment($comment_id);
     721        if (!$comment) {
     722            wp_send_json_error(esc_html__('Invalid comment.', 'ilachat'));
     723        }
     724
     725        $order_id = (int) $comment->comment_post_ID;
     726
    711727        if (!(is_user_logged_in() && current_user_can('edit_shop_orders', $order_id))) {
    712             wp_send_json_error(esc_html__('You do not have permission to add notes to this order.', 'ilachat'));
     728            wp_send_json_error(esc_html__('You do not have permission to delete notes on this order.', 'ilachat'));
    713729        }
    714730
  • ilachat/trunk/src/Integrations/Wordpress.php

    r3295458 r3358354  
    104104        );
    105105        wp_localize_script('ilachat-editor-sync', 'ilachatSync', [
    106             'restUrl'     => rest_url('ilachat/v1/sync-post/'),
    107             'nonce'       => wp_create_nonce('wp_rest'),
     106            'allowedPostTypes'  => $this->post_types,
    108107        ]);
    109108        wp_set_script_translations('ilachat-editor-sync', 'ilachat');
Note: See TracChangeset for help on using the changeset viewer.