Changeset 1735577
- Timestamp:
- 09/25/2017 02:21:21 PM (9 years ago)
- Location:
- chatx-ai
- Files:
-
- 127 added
- 6 edited
-
tags/0.1.2 (added)
-
tags/0.1.2/admin (added)
-
tags/0.1.2/admin/assets (added)
-
tags/0.1.2/admin/assets/css (added)
-
tags/0.1.2/admin/assets/css/chatx-ai-admin.css (added)
-
tags/0.1.2/admin/assets/img (added)
-
tags/0.1.2/admin/assets/img/chatxai-logo.svg (added)
-
tags/0.1.2/admin/assets/js (added)
-
tags/0.1.2/admin/assets/js/chatx-ai-admin.js (added)
-
tags/0.1.2/admin/assets/js/dashboard.js (added)
-
tags/0.1.2/admin/class-chatx-ai-admin.php (added)
-
tags/0.1.2/admin/controllers (added)
-
tags/0.1.2/admin/controllers/abstract.php (added)
-
tags/0.1.2/admin/controllers/dashboard.php (added)
-
tags/0.1.2/admin/controllers/settings.php (added)
-
tags/0.1.2/admin/dashboard-widgets (added)
-
tags/0.1.2/admin/dashboard-widgets/abstract.php (added)
-
tags/0.1.2/admin/dashboard-widgets/chart-abandoned-carts.php (added)
-
tags/0.1.2/admin/dashboard-widgets/chart-abstract.php (added)
-
tags/0.1.2/admin/dashboard-widgets/chart-recovered-carts.php (added)
-
tags/0.1.2/admin/dashboard-widgets/free-trial.php (added)
-
tags/0.1.2/admin/dashboard-widgets/payments.php (added)
-
tags/0.1.2/admin/index.php (added)
-
tags/0.1.2/admin/settings-tabs (added)
-
tags/0.1.2/admin/settings-tabs/abstract.php (added)
-
tags/0.1.2/admin/settings-tabs/billing.php (added)
-
tags/0.1.2/admin/settings-tabs/chatbot.php (added)
-
tags/0.1.2/admin/settings-tabs/general.php (added)
-
tags/0.1.2/admin/views (added)
-
tags/0.1.2/admin/views/page-dashboard.php (added)
-
tags/0.1.2/admin/views/page-settings.php (added)
-
tags/0.1.2/admin/views/settings-form.php (added)
-
tags/0.1.2/chatx-ai.php (added)
-
tags/0.1.2/includes (added)
-
tags/0.1.2/includes/class-chatx-ai-activator.php (added)
-
tags/0.1.2/includes/class-chatx-ai-deactivator.php (added)
-
tags/0.1.2/includes/class-chatx-ai-i18n.php (added)
-
tags/0.1.2/includes/class-chatx-ai-loader.php (added)
-
tags/0.1.2/includes/class-chatx-ai-options.php (added)
-
tags/0.1.2/includes/class-chatx-ai-rest-api.php (added)
-
tags/0.1.2/includes/class-chatx-ai.php (added)
-
tags/0.1.2/includes/index.php (added)
-
tags/0.1.2/includes/lib (added)
-
tags/0.1.2/includes/lib/clean.php (added)
-
tags/0.1.2/includes/lib/config.php (added)
-
tags/0.1.2/includes/lib/format.php (added)
-
tags/0.1.2/includes/lib/helpers.php (added)
-
tags/0.1.2/includes/lib/notices.php (added)
-
tags/0.1.2/includes/lib/wp-orm (added)
-
tags/0.1.2/includes/lib/wp-orm/.gitignore (added)
-
tags/0.1.2/includes/lib/wp-orm/LICENSE.md (added)
-
tags/0.1.2/includes/lib/wp-orm/README.md (added)
-
tags/0.1.2/includes/lib/wp-orm/composer.json (added)
-
tags/0.1.2/includes/lib/wp-orm/composer.lock (added)
-
tags/0.1.2/includes/lib/wp-orm/src (added)
-
tags/0.1.2/includes/lib/wp-orm/src/Admin (added)
-
tags/0.1.2/includes/lib/wp-orm/src/Admin/AdminHelper.php (added)
-
tags/0.1.2/includes/lib/wp-orm/src/Admin/ListTable.php (added)
-
tags/0.1.2/includes/lib/wp-orm/src/BaseModel.php (added)
-
tags/0.1.2/includes/lib/wp-orm/src/Model (added)
-
tags/0.1.2/includes/lib/wp-orm/src/Model/Comment.php (added)
-
tags/0.1.2/includes/lib/wp-orm/src/Model/Page.php (added)
-
tags/0.1.2/includes/lib/wp-orm/src/Model/Post.php (added)
-
tags/0.1.2/includes/lib/wp-orm/src/Model/User.php (added)
-
tags/0.1.2/includes/lib/wp-orm/src/ModelInterface.php (added)
-
tags/0.1.2/includes/lib/wp-orm/src/Query.php (added)
-
tags/0.1.2/includes/lib/wp-orm/vendor (added)
-
tags/0.1.2/includes/lib/wp-orm/vendor/autoload.php (added)
-
tags/0.1.2/includes/lib/wp-orm/vendor/composer (added)
-
tags/0.1.2/includes/lib/wp-orm/vendor/composer/ClassLoader.php (added)
-
tags/0.1.2/includes/lib/wp-orm/vendor/composer/LICENSE (added)
-
tags/0.1.2/includes/lib/wp-orm/vendor/composer/autoload_classmap.php (added)
-
tags/0.1.2/includes/lib/wp-orm/vendor/composer/autoload_namespaces.php (added)
-
tags/0.1.2/includes/lib/wp-orm/vendor/composer/autoload_psr4.php (added)
-
tags/0.1.2/includes/lib/wp-orm/vendor/composer/autoload_real.php (added)
-
tags/0.1.2/includes/lib/wp-orm/vendor/composer/autoload_static.php (added)
-
tags/0.1.2/includes/lib/wp-orm/vendor/composer/installed.json (added)
-
tags/0.1.2/includes/lib/wp-orm/views (added)
-
tags/0.1.2/includes/lib/wp-orm/views/list-table.php (added)
-
tags/0.1.2/includes/lib/wp-orm/wp-orm.php (added)
-
tags/0.1.2/includes/modules (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/abandoned-carts-manager.php (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/abandoned-carts-tracking.php (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/admin (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/admin/admin.php (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/admin/controllers (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/admin/controllers/abstract.php (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/admin/controllers/carts.php (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/admin/controllers/guests.php (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/admin/controllers/restored-carts.php (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/admin/controllers/tests.php (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/admin/report-list-table.php (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/admin/reports (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/admin/reports/carts.php (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/admin/reports/dev_carts.php (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/admin/reports/guests.php (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/admin/reports/restored-carts.php (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/admin/views (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/admin/views/page-table-with-sidebar.php (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/autoload.php (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/lib (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/lib/models (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/lib/models/AbandonedCart.php (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/lib/models/RestoredCart.php (added)
-
tags/0.1.2/includes/modules/abandoned_carts_tracking/lib/order.php (added)
-
tags/0.1.2/includes/modules/session_tracker (added)
-
tags/0.1.2/includes/modules/session_tracker/autoload.php (added)
-
tags/0.1.2/includes/modules/session_tracker/lib (added)
-
tags/0.1.2/includes/modules/session_tracker/lib/models (added)
-
tags/0.1.2/includes/modules/session_tracker/lib/models/Guest.php (added)
-
tags/0.1.2/includes/modules/session_tracker/session-tracker.php (added)
-
tags/0.1.2/index.php (added)
-
tags/0.1.2/languages (added)
-
tags/0.1.2/languages/chatx-ai.pot (added)
-
tags/0.1.2/public (added)
-
tags/0.1.2/public/class-chatx-ai-public.php (added)
-
tags/0.1.2/public/css (added)
-
tags/0.1.2/public/css/chatx-ai-public.css (added)
-
tags/0.1.2/public/index.php (added)
-
tags/0.1.2/public/js (added)
-
tags/0.1.2/public/js/chatx-ai-public.js (added)
-
tags/0.1.2/public/partials (added)
-
tags/0.1.2/public/partials/checkbox-plugin.php (added)
-
tags/0.1.2/public/partials/send-to-messenger-plugin.php (added)
-
tags/0.1.2/readme.txt (added)
-
tags/0.1.2/uninstall.php (added)
-
trunk/admin/class-chatx-ai-admin.php (modified) (2 diffs)
-
trunk/chatx-ai.php (modified) (1 diff)
-
trunk/includes/class-chatx-ai-deactivator.php (modified) (1 diff)
-
trunk/includes/lib/notices.php (modified) (1 diff)
-
trunk/includes/modules/abandoned_carts_tracking/abandoned-carts-tracking.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
chatx-ai/trunk/admin/class-chatx-ai-admin.php
r1733985 r1735577 62 62 63 63 function dismiss_chatx_notice() { 64 $id = isset($_POST['id']) ? (int)$_POST['id'] : null;64 $id = isset($_POST['id']) ? $_POST['id'] : null; 65 65 Notices::dismiss($id); 66 66 wp_die(); … … 400 400 public function auto_update_plugin( $update, $item ) { 401 401 // Array of plugin slugs to always auto-update 402 $plugins = array ( 402 $plugins = array ( 403 403 'chatx-ai', 404 404 ); -
chatx-ai/trunk/chatx-ai.php
r1733895 r1735577 4 4 * Plugin URI: https://chatx.ai 5 5 * Description: Recover abandoned carts on WooCommerce using an intelligent Facebook Messenger chatbot. 6 * Version: 0.1. 16 * Version: 0.1.2 7 7 * Author: chatx.ai 8 8 * Author URI: https://chatx.ai -
chatx-ai/trunk/includes/class-chatx-ai-deactivator.php
r1733642 r1735577 36 36 ChatXACT()->uninstall(); 37 37 chatx_active_campaign_sync('plugin_deactivated'); 38 38 39 } 39 40 } -
chatx-ai/trunk/includes/lib/notices.php
r1733642 r1735577 49 49 50 50 $notices = array_filter($notices, function($notice) use ($id){ 51 return $notice['id']== $id;51 return isset($notice['id']) && $notice['id'] !== $id; 52 52 }); 53 53 -
chatx-ai/trunk/includes/modules/abandoned_carts_tracking/abandoned-carts-tracking.php
r1733642 r1735577 63 63 wp_schedule_event(time(), 'daily', 'chatxai_daily_worker'); 64 64 } 65 66 $this->set_plugin_state(true); 65 67 } 66 68 … … 69 71 wp_clear_scheduled_hook('chatxai_send_carts_worker'); 70 72 wp_clear_scheduled_hook('chatxai_daily_worker'); 73 74 $this->set_plugin_state(false); 75 } 76 77 public function set_plugin_state($state = false){ 78 try { 79 $this->do_chatx_post_request('/plugin/state', ['state' => $state]); 80 } catch (Exception $e) { 81 82 } 71 83 } 72 84 … … 207 219 $data['at'] = \Chatx_Ai_Options::read('chatxai_api_token'); 208 220 $data['ak'] = \Chatx_Ai_Options::read('chatxai_api_key'); 221 222 if(!$data['at'] || !$data['ak']){ 223 return false; 224 } 209 225 210 226 $options = array( -
chatx-ai/trunk/readme.txt
r1733986 r1735577 3 3 Tags: abandoned cart, recover abandoned cart, woocommerce, chatbot, facebook messenger 4 4 Tested up to: 4.8.2 5 Stable tag: 0.1. 15 Stable tag: 0.1.2 6 6 Requires at least: 3.0 7 7 … … 17 17 = How it Works = 18 18 19 First, we track your store's abandoned carts and the related Facebook users. We promise **this is not spam** and we respect all policies from Facebook Messenger ToS.19 A chatbot is the perfect hook for your shop client. Don’t worry, we don’t have to agitate him. At six hours after he abandons the shopping cart he will receive a message via Facebook Messenger with a kind reminder about his shopping cart. The shop client will be congratulated for his product choice and will be asked to reconsider his abandoned cart. 20 20 21 After a number of hours from the cart abandonment, your customer will receive a message from your store’s Facebook page (yes, you will need a Facebook page). 21 = Facebook Messenger vs Email = 22 22 23 In that message, he will be reminded of the products left in cart. The chatbot will try to convince him to finish the order. Here, you have some options like allowing the chatbot to use a discount coupon, or scarcity to be more convincing.23 Email is soooo 2016! Convince your possible customers to buy via email only means losing the opportunity to close the conversion where your clients are: on Messenger. Be closer to your shop client via Facebook Messenger and the chances for him to buy your products are considerably higher. 24 24 25 You can read more about how ChatX.ai works on [our official website](https://chatx.ai/). 25 = Built for WooCommerce = 26 27 ChatX + WooCommerce = Love. Yeap, that’s romance! We are 100% integrated with WooCommerce so the setting process is nice and smooth. Just relax and let ChatX do his thing. Simply increase your revenues. Try ChatX today and let the magic happen. 28 29 = A low price to remember = 30 31 The price? How about try ChatX for FREE? The first **€1000 in sales** is our gift for you. It’s a win-win deal: we make some money only if we're boosting your revenues. Sounds fair? 32 33 After the FREE TRIAL, **we will charge only 2%** from the value of the carts that we recover for you through ChatX. 34 35 **You can read more about [ChatX.ai on our official website](https://chatx.ai).** 26 36 27 37 == Changelog == 38 = 0.1.2 = 39 * You can now set a discount which the chatbot can use to convince a customer to finish its cart recovery. 40 * Track if the plugin is enable/disable so we can know when to send a message or not. 41 28 42 = 0.1.1 = 29 43 * Improved the autoupdate functionality. … … 44 58 After this point, you can simply go to the Plugins section and deactivate & uninstall the ChatX.ai plugin. 45 59 60 == Frequently Asked Questions == 61 62 = What is ChatX? = 63 64 ChatX is both a WordPress plugin & a Messenger Chatbot. The plugin will track your shop abandoned cart and the chatbot will try to recover it via Facebook Messenger. 65 66 = Can I customize the chatbot messages? = 67 68 There is no need customize the automated messages. ChatX use machine learning to automatically improve the messages sent to your customers, in order to have the best conversion rate possible. 69 70 = What languages are available? = 71 72 Our chatbot speaks English and Romanian at this moment, but he is learning more languages so we can help more online stores around the world. 73 74 = Why do I need a Messenger chatbot? = 75 76 Easy question… because we are in 2017. People open less emails, and the social media stream is so noisy, you can barely see your own posts. Facebook Messenger chatbots solve this problem by providing a direct, private channel of communication with each user. It’s instant and interactive, and no message is ever lost. 77 78 = What is a Messenger chatbot? = 79 80 A messenger chatbot is a tool that allows your Facebook Page to send out messages and respond to users automatically. 81 82 You’ll need an existing Facebook Page to set up it’s chatbot functionality. 83 84 = Why 2% and not a fixed price? = 85 86 We think taking a % from the value of the carts we recover it’s a win-win deal. That’s because if we don’t boost your sales, you don’t pay anything. 87 88 = Can I update my card details? = 89 90 Yes. Go to the billing section of the plugin settings and update your payment information. 91 92 = Can I cancel my subscription? = 93 94 You can cancel your subscription at any time. When you cancel your subscription we will first try to charge you the money owed from the recovered carts. 95 96 = Can I get refund? = 97 98 Unfortunately, not at this time! Please try our FREE plan for a while to make sure ChatX is what you want. 99 100 = Can I engage in a live, real-time conversation with my customer? = 101 102 Definitely! ChatX starts the conversation, and you can jump in anytime you like. 103 104 = What payment services do you support? = 105 106 We accept all major credit cards. 107 108 = Other questions? = 109 110 We’re always available at contact@chatx.ai 111 46 112 == Updates == 47 Updates of the plugin will be posted here.113 We use autoupdates for our plugin so that it can be compatible 100% with the chatbot & chatx.ai platform at all times.
Note: See TracChangeset
for help on using the changeset viewer.