Changeset 3358354
- Timestamp:
- 09/09/2025 06:50:47 AM (7 months ago)
- Location:
- ilachat/trunk
- Files:
-
- 6 edited
-
assets/js/ilachat-editor-sync.js (modified) (3 diffs)
-
ilachat.php (modified) (2 diffs)
-
languages/ilachat.pot (modified) (8 diffs)
-
readme.txt (modified) (2 diffs)
-
src/Integrations/Woocommerce.php (modified) (2 diffs)
-
src/Integrations/Wordpress.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ilachat/trunk/assets/js/ilachat-editor-sync.js
r3295364 r3358354 1 const { allowedPostTypes = [] } = window.ilachatSync || {}; 1 2 const { registerPlugin } = wp.plugins; 2 3 const { PluginPrePublishPanel, PluginPostStatusInfo } = wp.editPost; … … 9 10 function IlachatSyncTogglePanel() { 10 11 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 || {}; 12 17 const lastSync = meta.ilachat_synced || ''; 13 18 const descriptionText = lastSync … … 33 38 function IlachatPostSummary() { 34 39 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 || {}; 36 45 const lastSync = meta.ilachat_synced; 37 46 const descriptionText = lastSync -
ilachat/trunk/ilachat.php
r3295270 r3358354 12 12 * Plugin URI: https://ila.chat 13 13 * Description: Integrate ILACHAT with WordPress to add AI-powered chatbot and live chat for seamless customer support and engagement. 14 * Version: 1.2. 014 * Version: 1.2.1 15 15 * Requires at least: 6.2 16 16 * Requires PHP: 7.4.0 … … 81 81 } 82 82 83 add_action(' plugins_loaded', 'ilachat_init');83 add_action('after_setup_theme', 'ilachat_init'); 84 84 85 85 /** -
ilachat/trunk/languages/ilachat.pot
r3295364 r3358354 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-0 5-17T19:27:57+02:00\n"12 "POT-Creation-Date: 2025-09-09T08:29:57+02:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2.1 1.0\n"14 "X-Generator: WP-CLI 2.12.0\n" 15 15 "X-Domain: ilachat\n" 16 16 … … 40 40 msgstr "" 41 41 42 #: src/Admin/Admin.php:3 643 #: src/Admin/Admin.php:4 642 #: src/Admin/Admin.php:37 43 #: src/Admin/Admin.php:47 44 44 msgid "Ilachat Settings" 45 45 msgstr "" 46 46 47 #: src/Admin/Admin.php:3 747 #: src/Admin/Admin.php:38 48 48 msgid "Ilachat" 49 49 msgstr "" 50 50 51 #: src/Admin/Admin.php:4 752 #: src/Admin/Admin.php:13 251 #: src/Admin/Admin.php:48 52 #: src/Admin/Admin.php:131 53 53 msgid "Settings" 54 54 msgstr "" 55 55 56 #: src/Admin/Admin.php:11 856 #: src/Admin/Admin.php:117 57 57 msgid "Are you sure you want to unlink Ilachat from your website?" 58 58 msgstr "" 59 59 60 #: src/Admin/Admin.php:19 560 #: src/Admin/Admin.php:194 61 61 msgid "You do not have permission to perform this action." 62 62 msgstr "" 63 63 64 #: src/Admin/Admin.php:20 364 #: src/Admin/Admin.php:202 65 65 msgid "Invalid nonce." 66 66 msgstr "" 67 67 68 #: src/Admin/Admin.php:21 368 #: src/Admin/Admin.php:212 69 69 msgid "Settings updated successfully." 70 70 msgstr "" 71 71 72 #: src/Admin/Connection.php: 7972 #: src/Admin/Connection.php:80 73 73 msgid "Ilachat has been successfully disconnected." 74 74 msgstr "" 75 75 76 #: src/Admin/Connection.php:12 777 #: src/Admin/Connection.php:13 376 #: src/Admin/Connection.php:128 77 #: src/Admin/Connection.php:134 78 78 msgid "Invalid request." 79 79 msgstr "" 80 80 81 #: src/Admin/Connection.php:15 182 #: src/Admin/Connection.php:15 781 #: src/Admin/Connection.php:152 82 #: src/Admin/Connection.php:158 83 83 msgid "Invalid token." 84 84 msgstr "" 85 85 86 #: src/Admin/Connection.php:1 6986 #: src/Admin/Connection.php:170 87 87 msgid "Ilachat has been successfully connected." 88 88 msgstr "" … … 95 95 msgstr "" 96 96 97 #: src/Integrations/Woocommerce.php:3 3097 #: src/Integrations/Woocommerce.php:329 98 98 msgid "Order tracking is disabled" 99 99 msgstr "" 100 100 101 #: src/Integrations/Woocommerce.php:33 8101 #: src/Integrations/Woocommerce.php:337 102 102 msgid "Order ID is required" 103 103 msgstr "" 104 104 105 #: src/Integrations/Woocommerce.php:343 105 #: src/Integrations/Woocommerce.php:342 106 #: src/Integrations/Woocommerce.php:350 106 107 msgid "Order not found" 107 108 msgstr "" 108 109 109 #: src/Integrations/Woocommerce.php:3 48110 #: src/Integrations/Woocommerce.php:356 110 111 msgid "Invalid phone number" 111 112 msgstr "" 112 113 113 #: src/Integrations/Woocommerce.php:3 53114 #: src/Integrations/Woocommerce.php:361 114 115 msgid "Invalid email address" 115 116 msgstr "" 116 117 117 #: src/Integrations/Woocommerce.php:5 58118 #: src/Integrations/Woocommerce.php:6 32118 #: src/Integrations/Woocommerce.php:566 119 #: src/Integrations/Woocommerce.php:640 119 120 msgid "Please enter a note." 120 121 msgstr "" 121 122 122 #: src/Integrations/Woocommerce.php:5 59123 #: src/Integrations/Woocommerce.php:567 123 124 msgid "An error occurred while doing the request." 124 125 msgstr "" 125 126 126 #: src/Integrations/Woocommerce.php:56 0127 #: src/Integrations/Woocommerce.php:568 127 128 #: templates/admin/wc-order-notes.php:38 128 129 msgid "Delete note" 129 130 msgstr "" 130 131 131 #: src/Integrations/Woocommerce.php:56 1132 #: src/Integrations/Woocommerce.php:569 132 133 msgid "Are you sure you want to delete this note? This action cannot be undone." 133 134 msgstr "" 134 135 135 #: src/Integrations/Woocommerce.php:5 62136 #: src/Integrations/Woocommerce.php:570 136 137 msgid "Pause sync" 137 138 msgstr "" 138 139 139 #: src/Integrations/Woocommerce.php:5 63140 #: src/Integrations/Woocommerce.php:571 140 141 msgid "Resume sync" 141 142 msgstr "" 142 143 143 #: src/Integrations/Woocommerce.php:5 64144 #: src/Integrations/Woocommerce.php:572 144 145 msgid "Sync Products" 145 146 msgstr "" 146 147 147 #: src/Integrations/Woocommerce.php:5 84148 #: src/Integrations/Woocommerce.php:592 148 149 msgid "Ilachat Order Notes" 149 150 msgstr "" 150 151 151 #: src/Integrations/Woocommerce.php:6 27152 #: src/Integrations/Woocommerce.php:635 152 153 msgid "Invalid order." 153 154 msgstr "" 154 155 155 #: src/Integrations/Woocommerce.php:636 156 #: src/Integrations/Woocommerce.php:713 156 #: src/Integrations/Woocommerce.php:644 157 157 msgid "You do not have permission to add notes to this order." 158 158 msgstr "" 159 159 160 #: src/Integrations/Woocommerce.php:64 1160 #: src/Integrations/Woocommerce.php:649 161 161 msgid "Failed to add note." 162 162 msgstr "" 163 163 164 #: src/Integrations/Woocommerce.php:7 09164 #: src/Integrations/Woocommerce.php:717 165 165 msgid "Invalid comment ID." 166 166 msgstr "" 167 167 168 #: src/Integrations/Woocommerce.php:718 168 #: src/Integrations/Woocommerce.php:722 169 msgid "Invalid comment." 170 msgstr "" 171 172 #: src/Integrations/Woocommerce.php:728 173 msgid "You do not have permission to delete notes on this order." 174 msgstr "" 175 176 #: src/Integrations/Woocommerce.php:733 169 177 msgid "Failed to delete note." 170 178 msgstr "" 171 179 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 187 msgid "Sync with Ilachat" 188 msgstr "" 189 190 #: src/Integrations/Woocommerce.php:1030 191 #: src/Integrations/Wordpress.php:290 176 192 #: 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 186 194 msgid "Last synced:" 187 195 msgstr "" 188 196 189 197 #. 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 191 200 msgid "Synced %s product with Ilachat." 192 201 msgid_plural "Synced %s products with Ilachat." … … 195 204 196 205 #. 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 198 208 msgid "Failed to sync %s product with Ilachat." 199 209 msgid_plural "Failed to sync %s products with Ilachat." … … 201 211 msgstr[1] "" 202 212 203 #: src/Integrations/Woocommerce.php:11 74213 #: src/Integrations/Woocommerce.php:1188 204 214 msgid "Product data limit reached. Please upgrade your plan." 205 215 msgstr "" 206 216 217 #: src/Integrations/Wordpress.php:181 218 msgid "Author" 219 msgstr "" 220 207 221 #: src/Integrations/Wordpress.php:182 208 msgid " Author"222 msgid "Categories" 209 223 msgstr "" 210 224 211 225 #: src/Integrations/Wordpress.php:183 212 msgid " Categories"226 msgid "Tags" 213 227 msgstr "" 214 228 215 229 #: src/Integrations/Wordpress.php:184 216 msgid " Tags"230 msgid "Post URL" 217 231 msgstr "" 218 232 219 233 #: src/Integrations/Wordpress.php:185 220 msgid "Post URL"221 msgstr ""222 223 #: src/Integrations/Wordpress.php:186224 234 msgid "Featured Image" 225 235 msgstr "" 226 236 227 237 #. 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 229 240 msgid "Synced %s post with Ilachat." 230 241 msgid_plural "Synced %s posts with Ilachat." … … 233 244 234 245 #. 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 236 248 msgid "Failed to sync %s post with Ilachat." 237 249 msgid_plural "Failed to sync %s posts with Ilachat." … … 253 265 #. translators: %1$d is the number of days left 254 266 #: templates/admin/settings-page.php:41 267 #, php-format 255 268 msgid "%1$s days left" 256 269 msgstr "" … … 414 427 msgstr "" 415 428 416 #: assets/js/ilachat-editor-sync.js: 15417 #: assets/js/ilachat-editor-sync.js: 39429 #: assets/js/ilachat-editor-sync.js:20 430 #: assets/js/ilachat-editor-sync.js:48 418 431 msgid "This post will be synced with Ilachat when you save it." 419 432 msgstr "" -
ilachat/trunk/readme.txt
r3295390 r3358354 5 5 Tested up to: 6.8 6 6 Stable tag: 1.2.0 7 Requires at least: 6.2 8 Requires PHP: 7.4.0 7 9 License: GPL v3 8 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html 9 11 10 Integrate ILACHAT with WordPress and WooCommerce to enable an AI-powered chatbot and live chat with real-time user data integration.12 AI-powered chatbot and live chat for WordPress & WooCommerce. Boost support, sales, and lead capture with real-time data. 11 13 12 14 == Description == 13 15 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. 16 ILACHAT 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 18 With 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 20 Store-focused chatbots act as virtual sales consultants, guiding shoppers through product selections, offering personalized recommendations, assisting with order tracking, and strengthening customer retention. 16 21 17 22 **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.24 23 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 35 Need 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. 26 36 27 37 **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.39 38 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 50 For 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 57 Explore all features and view pricing at [https://ila.chat/pricing/](https://ila.chat/pricing/). 58 For documentation and updates, visit the [ILACHAT official site](https://ila.chat). 41 59 42 60 == Installation == 43 61 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' screenin WordPress.62 1. Upload the plugin files to `/wp-content/plugins/ilachat` or install directly via the WordPress Plugins screen. 63 2. Activate the plugin through the "Plugins" menu in WordPress. 46 64 3. Connect your ILACHAT account in the ILACHAT settings page. 47 4. Configure WooCommerce settingsand customize the chat widget.48 5. Enjoyautomated and personalized customer interactions.65 4. Configure WooCommerce integration and customize the chat widget. 66 5. Start delivering automated and personalized customer interactions. 49 67 50 68 == Frequently Asked Questions == 51 69 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? = 71 Yes. You can create a free ILACHAT account at [https://ila.chat](https://ila.chat) and start using the chatbot and live chat immediately. 54 72 55 = Does it auto-sync WooCommerce products? =56 Yes, automatic syncing occurs when products are added or updated.73 = Is ILACHAT free to use? = 74 Yes, 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/). 57 75 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? = 77 Yes. Products are automatically synchronized with ILACHAT whenever they are added or updated in WooCommerce. 60 78 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? = 80 Yes, the chatbot provides real-time order status updates, and you can add special notes for reference. 63 81 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? = 83 Yes. 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. 66 84 67 = Can the widget appearance be customized? = 68 Absolutely, to match your site's branding. 85 = Does the widget collect user information? = 86 Yes, 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? = 89 Yes. You can personalize colors, styles, and branding to match your website. 90 91 = Does ILACHAT support multiple languages? = 92 Yes, ILACHAT is fully multilingual. It accepts all languages as input and can reply in your preferred business language. 69 93 70 94 = Is ILACHAT secure? = 71 Yes, with enterprise-grade security. 95 Yes, ILACHAT uses enterprise-grade security measures to protect your data and conversations. 96 97 = Can conversations be handled by human operators too? = 98 Yes. Within the ILACHAT panel, operators can take over conversations and respond manually whenever needed. 99 100 = Does ILACHAT slow down my website? = 101 No. ILACHAT is optimized for performance, and synchronization happens in the background without affecting your site’s load speed. 72 102 73 103 == Changelog == 104 105 = 1.2.1 = 106 * Fixed minor bugs and improved performance. 74 107 75 108 = 1.2.0 = … … 81 114 = 1.1.0 = 82 115 * 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. 87 120 * Optional sending of lead data (name, email, phone) to ILACHAT. 88 121 * Enhanced real-time user data handling and chatbot accuracy. -
ilachat/trunk/src/Integrations/Woocommerce.php
r3295458 r3358354 343 343 } 344 344 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 345 354 // Validate the phone number. 346 355 if (get_option('ilachat_woocommerce_order_check_phone_enabled', 0) && Helper::check_phone($order->get_billing_phone()) !== Helper::check_phone($phone_number)) { … … 709 718 } 710 719 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 711 727 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 tothis order.', 'ilachat'));728 wp_send_json_error(esc_html__('You do not have permission to delete notes on this order.', 'ilachat')); 713 729 } 714 730 -
ilachat/trunk/src/Integrations/Wordpress.php
r3295458 r3358354 104 104 ); 105 105 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, 108 107 ]); 109 108 wp_set_script_translations('ilachat-editor-sync', 'ilachat');
Note: See TracChangeset
for help on using the changeset viewer.