Plugin Directory

Changeset 2922714


Ignore:
Timestamp:
06/07/2023 07:46:53 AM (3 years ago)
Author:
rudlinkon
Message:

Update to version 2.3.0 from GitHub

Location:
myaliceai
Files:
18 edited
1 copied

Legend:

Unmodified
Added
Removed
  • myaliceai/tags/2.3.0/includes/myalice-dashboard-inline-styles.php

    r2821376 r2922714  
    66add_action( 'admin_head', function () { ?>
    77    <style>
     8        @keyframes alice-rotate {
     9            from {
     10                transform: rotate(0deg);
     11            }
     12            to {
     13                transform: rotate(360deg);
     14            }
     15        }
     16
    817        /* === Alice Admin Menu === */
    918        #adminmenu #toplevel_page_myalice_dashboard div.wp-menu-image > img {
     
    390399        }
    391400
     401        #alice-dashboard .alice-dashboard-header .alice-main-menu ul li.--wcapi-status button {
     402            height: 24px;
     403            line-height: 24px;
     404            border-radius: 4px;
     405            border: none;
     406            padding: 0 6px 0 18px;
     407            position: relative;
     408        }
     409
     410        #alice-dashboard .alice-dashboard-header .alice-main-menu ul li.--wcapi-status button::before {
     411            content: "";
     412            position: absolute;
     413            left: 6px;
     414            top: calc(50% - 3px);
     415            height: 6px;
     416            width: 6px;
     417            border-radius: 50%;
     418            display: block;
     419        }
     420
     421        #alice-dashboard .alice-dashboard-header .alice-main-menu ul li.--wcapi-status button.--wcapi-operational {
     422            color: #065F46;
     423            background: #D1FAE5;
     424        }
     425
     426        #alice-dashboard .alice-dashboard-header .alice-main-menu ul li.--wcapi-status button.--wcapi-operational::before {
     427            background: #34D399;
     428        }
     429
     430        #alice-dashboard .alice-dashboard-header .alice-main-menu ul li.--wcapi-status button.--wcapi-disconnected {
     431            color: #991B1B;
     432            background: #FEE2E2;
     433        }
     434
     435        #alice-dashboard .alice-dashboard-header .alice-main-menu ul li.--wcapi-status button.--wcapi-disconnected::before {
     436            background: #F87171;
     437        }
     438
    392439        /* dashboard connect-with-myalice section */
    393440        #alice-dashboard .alice-connect-with-myalice,
     
    575622        }
    576623
     624        #alice-dashboard .alice-explore-myalice .alice-btn.--wc-api-sync-btn span,
     625        #alice-dashboard .alice-explore-myalice .alice-btn.--wc-api-sync-btn svg {
     626            display: inline-block;
     627            vertical-align: middle;
     628        }
     629
     630        #alice-dashboard .alice-explore-myalice .alice-btn.--wc-api-sync-btn svg + svg {
     631            display: none;
     632        }
     633
     634        #alice-dashboard .alice-explore-myalice .alice-btn.--wc-api-sync-btn.--syncing svg {
     635            animation-name: alice-rotate;
     636            animation-duration: 2s;
     637            animation-timing-function: linear;
     638            animation-iteration-count: infinite;
     639        }
     640
     641        #alice-dashboard .alice-explore-myalice .alice-btn.--wc-api-sync-btn.--synced svg {
     642            display: none;
     643        }
     644
     645        #alice-dashboard .alice-explore-myalice .alice-btn.--wc-api-sync-btn.--synced svg + svg {
     646            display: inline-block;
     647        }
     648
    577649        /* dashboard plugin-settings section */
    578650        #alice-dashboard .alice-plugin-settings {
  • myaliceai/tags/2.3.0/includes/myalice-dashboard-templates-and-scripts.php

    r2879321 r2922714  
    260260                    }
    261261                });
     262            }).on('click', '.--wc-api-sync-btn', function (e) {
     263                e.preventDefault();
     264
     265                var $this = $(this),
     266                    $label = $this.children('span'),
     267                    $wc_status_button = $('li.--wcapi-status button'),
     268                    url = "<?php echo admin_url( 'admin-ajax.php' ); ?>",
     269                    data = {
     270                        "action": "myalice_check_wc_api_status",
     271                        "nonce": "<?php echo wp_create_nonce( 'myaliceai' ); ?>"
     272                    };
     273
     274                $this.addClass('--syncing').removeClass('--synced');
     275                $label.text('Syncing Changes...');
     276
     277                $.post(url, data, function (response) {
     278                    $this.removeClass('--syncing').addClass('--synced');
     279
     280                    if (response.success) {
     281                        $label.text('Changes synced');
     282
     283                        if (response.data.error === false && response.data.success === true) {
     284                            $wc_status_button.removeClass('--wcapi-disconnected').addClass('--wcapi-operational');
     285                            $wc_status_button.text('Operational');
     286                            $wc_status_button.removeAttr('title');
     287                        } else {
     288                            $wc_status_button.removeClass('--wcapi-operational').addClass('--wcapi-disconnected');
     289                            $wc_status_button.text('Disconnected');
     290                            $wc_status_button.attr('title', response.data.message);
     291                            $('#alice-dashboard').removeClass('--explore-myalice').addClass('--needs-your-permission');
     292                        }
     293                    } else {
     294                        $this.removeClass('--syncing --synced');
     295                        $label.text('Changes failed');
     296                    }
     297                });
    262298            });
    263299        })(jQuery);
  • myaliceai/tags/2.3.0/includes/myalice-helper-functions.php

    r2821376 r2922714  
    4848
    4949function myalice_get_dashboard_class() {
    50     $wc_auth = get_option( 'myaliceai_wc_auth' );
    51     if ( empty( $wc_auth ) ) {
     50    $wc_auth   = get_option( 'myaliceai_wc_auth' );
     51    $wc_status = myalice_is_working_wcapi();
     52    if ( empty( $wc_auth ) || $wc_status['error'] === true ) {
    5253        return '--needs-your-permission';
    5354    }
     
    122123    return false;
    123124}
     125
     126function myalice_is_working_wcapi( $force = false ) {
     127    $wc_api_status = get_transient( 'myaliceai_wc_api_status' );
     128    if ( ! empty( $wc_api_status ) && ! $force ) {
     129        return $wc_api_status;
     130    } else {
     131        $wc_auth         = get_option( 'myaliceai_wc_auth' );
     132        $consumer_key    = empty( $wc_auth['consumer_key'] ) ? '' : $wc_auth['consumer_key'];
     133        $consumer_secret = empty( $wc_auth['consumer_secret'] ) ? '' : $wc_auth['consumer_secret'];;
     134        $request_url     = site_url() . '/wp-json/wc/v3/settings';
     135        $result          = [ 'error' => false, 'message' => '', 'success' => false ];
     136
     137        $request_url = add_query_arg( array(
     138            'consumer_key'    => $consumer_key,
     139            'consumer_secret' => $consumer_secret
     140        ), $request_url );
     141
     142        $response = wp_remote_get( $request_url );
     143
     144        if ( is_wp_error( $response ) ) {
     145            $result['error']   = true;
     146            $result['message'] = $response->get_error_message();
     147        } else {
     148            $body = json_decode( wp_remote_retrieve_body( $response ), true );
     149
     150            if ( $response['response']['code'] === 200 ) {
     151                $result['success'] = true;
     152            } else {
     153                $result['error']   = true;
     154                $result['message'] = $body['message'];
     155            }
     156        }
     157
     158        set_transient( 'myaliceai_wc_api_status', $result, HOUR_IN_SECONDS );
     159
     160        return $result;
     161    }
     162}
  • myaliceai/tags/2.3.0/includes/myalice-hooks-callback.php

    r2821376 r2922714  
    493493    _e( '<div class="notice notice-error"><p><strong>WooCommerce</strong> is not installed/activated in your site. Please install and activate <a href="plugin-install.php?s=woocommerce&tab=search&type=term" target="_blank">WooCommerce</a> to use MyAlice Plugin. If you want to use MyAlice without WooCommerce, <a href="https://docs.myalice.ai/connect-social-channels/connect-web-app/connect-live-chat" target="_blank">follow this</a>.</p></div>', 'myaliceai' );
    494494}
     495
     496function myalice_check_wc_api_status() {
     497    if ( check_ajax_referer( 'myaliceai', 'nonce' ) ) {
     498        wp_send_json_success( myalice_is_working_wcapi( true ) );
     499    }
     500}
  • myaliceai/tags/2.3.0/includes/myalice-hooks.php

    r2821376 r2922714  
    8282add_action( 'myalice_admin_notices', 'myalice_chat_customization_admin_notice', 0 );
    8383add_action( 'wp_ajax_myalice_migration', 'myalice_migration_livechat' );
     84add_action( 'wp_ajax_myalice_check_wc_api_status', 'myalice_check_wc_api_status' );
    8485
    8586add_action( 'admin_init', function () {
  • myaliceai/tags/2.3.0/includes/myaliceai-dashboard.php

    r2821376 r2922714  
    2525        'key_permissions' => $wc_auth_data['key_permissions'],
    2626    ];
     27
    2728    update_option( 'myaliceai_wc_auth', $auth_data, false );
     29}
     30
     31// Update the WC API Status
     32if ( isset( $_GET['page'], $_GET['success'], $_GET['user_id'] ) && $_GET['page'] === 'myalice_dashboard' && $_GET['success'] == 1 && ! empty( $_GET['user_id'] ) ) {
     33    myalice_is_working_wcapi( true );
     34    wp_safe_redirect( admin_url( '?page=myalice_dashboard' ) );
    2835}
    2936
     
    5865                                    <li><a href="https://www.myalice.ai/support" target="_blank"><?php esc_html_e( 'Contact Support', 'myaliceai' ); ?></a></li>
    5966                                </ul>
     67                            </li>
     68                            <li class="--wcapi-status">
     69                                <?php
     70                                $status = myalice_is_working_wcapi();
     71                                if ( $status['error'] === false && $status['success'] === true ) {
     72                                    $status_class = '--wcapi-operational';
     73                                    $status_text  = __( 'Operational', 'myaliceai' );
     74                                } else {
     75                                    $status_class = '--wcapi-disconnected';
     76                                    $status_text  = __( 'Disconnected', 'myaliceai' );
     77                                }
     78
     79                                ?>
     80                                <button class="<?php echo esc_attr( $status_class ); ?>" title="<?php echo esc_attr( $status['message'] ); ?>"><?php echo esc_html( $status_text ); ?></button>
    6081                            </li>
    6182                        </ul>
     
    181202                </div>
    182203                <div class="alice-container">
    183                     <a class="alice-btn alice-btn-lite" href="<?php echo esc_url( 'https://app.myalice.ai/dashboard' ); ?>"><?php esc_html_e( 'Open MyAlice', 'myaliceai' ); ?></a>
    184204                    <a class="alice-btn alice-btn-lite"
    185                        href="<?php echo esc_url( 'https://app.myalice.ai/projects/' . MYALICE_PROJECT_ID . '/chat' ); ?>"><?php esc_html_e( 'Open Inbox', 'myaliceai' ); ?></a>
     205                    href="<?php echo esc_url( 'https://app.myalice.ai/projects/' . MYALICE_PROJECT_ID . '/chat' ); ?>"><?php esc_html_e( 'Open Inbox', 'myaliceai' ); ?></a>
     206                    <a class="alice-btn alice-btn-lite --wc-api-sync-btn">
     207                        <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
     208                            <path d="M16.5915 12.9251H12.8165C12.5955 12.9251 12.3835 13.0129 12.2272 13.1692C12.071 13.3254 11.9832 13.5374 11.9832 13.7584C11.9832 13.9794 12.071 14.1914 12.2272 14.3477C12.3835 14.5039 12.5955 14.5917 12.8165 14.5917H14.8165C13.8973 15.5524 12.7118 16.2162 11.4125 16.4979C10.1131 16.7796 8.75918 16.6664 7.52465 16.1728C6.29012 15.6792 5.23139 14.8277 4.4845 13.7277C3.7376 12.6278 3.33665 11.3296 3.33317 10.0001C3.33317 9.77907 3.24537 9.56711 3.08909 9.41083C2.93281 9.25455 2.72085 9.16675 2.49984 9.16675C2.27882 9.16675 2.06686 9.25455 1.91058 9.41083C1.7543 9.56711 1.6665 9.77907 1.6665 10.0001C1.67091 11.6274 2.15169 13.2178 3.04951 14.5751C3.94733 15.9324 5.22289 16.997 6.71879 17.6378C8.21469 18.2785 9.86545 18.4672 11.4674 18.1806C13.0693 17.894 14.5522 17.1447 15.7332 16.0251V17.5001C15.7332 17.7211 15.821 17.9331 15.9772 18.0893C16.1335 18.2456 16.3455 18.3334 16.5665 18.3334C16.7875 18.3334 16.9995 18.2456 17.1558 18.0893C17.312 17.9331 17.3998 17.7211 17.3998 17.5001V13.7501C17.3978 13.5348 17.3125 13.3286 17.1618 13.1748C17.0111 13.021 16.8067 12.9315 16.5915 12.9251ZM9.99984 1.66675C7.86349 1.67284 5.81108 2.49918 4.2665 3.97508V2.50008C4.2665 2.27907 4.17871 2.06711 4.02243 1.91083C3.86615 1.75455 3.65418 1.66675 3.43317 1.66675C3.21216 1.66675 3.0002 1.75455 2.84391 1.91083C2.68763 2.06711 2.59984 2.27907 2.59984 2.50008V6.25008C2.59984 6.4711 2.68763 6.68306 2.84391 6.83934C3.0002 6.99562 3.21216 7.08341 3.43317 7.08341H7.18317C7.40418 7.08341 7.61615 6.99562 7.77243 6.83934C7.92871 6.68306 8.0165 6.4711 8.0165 6.25008C8.0165 6.02907 7.92871 5.81711 7.77243 5.66083C7.61615 5.50455 7.40418 5.41675 7.18317 5.41675H5.18317C6.10189 4.45664 7.28658 3.793 8.58517 3.511C9.88376 3.22901 11.237 3.34154 12.4712 3.83413C13.7054 4.32673 14.7642 5.17692 15.5117 6.27558C16.2592 7.37424 16.6614 8.67124 16.6665 10.0001C16.6665 10.2211 16.7543 10.4331 16.9106 10.5893C17.0669 10.7456 17.2788 10.8334 17.4998 10.8334C17.7208 10.8334 17.9328 10.7456 18.0891 10.5893C18.2454 10.4331 18.3332 10.2211 18.3332 10.0001C18.3332 8.90573 18.1176 7.8221 17.6988 6.81105C17.28 5.80001 16.6662 4.88135 15.8924 4.10752C15.1186 3.3337 14.1999 2.71987 13.1889 2.30109C12.1778 1.8823 11.0942 1.66675 9.99984 1.66675Z" fill="black"/>
     209                        </svg>
     210                        <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
     211                            <path fill-rule="evenodd" clip-rule="evenodd" d="M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM13.7071 8.70711C14.0976 8.31658 14.0976 7.68342 13.7071 7.29289C13.3166 6.90237 12.6834 6.90237 12.2929 7.29289L9 10.5858L7.70711 9.29289C7.31658 8.90237 6.68342 8.90237 6.29289 9.29289C5.90237 9.68342 5.90237 10.3166 6.29289 10.7071L8.29289 12.7071C8.68342 13.0976 9.31658 13.0976 9.70711 12.7071L13.7071 8.70711Z" fill="#04B25F"/>
     212                        </svg>
     213                        <span><?php esc_html_e( 'Sync Changes', 'myaliceai' ); ?></span>
     214                    </a>
    186215                </div>
    187216            </section>
  • myaliceai/tags/2.3.0/languages/myaliceai.pot

    r2879321 r2922714  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: MyAlice 2.2.0\n"
     5"Project-Id-Version: MyAlice 2.3.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/myaliceai\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-03-13T18:39:56+00:00\n"
     12"POT-Creation-Date: 2023-06-07T07:43:01+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.6.0\n"
     
    170170
    171171#: includes/myalice-hooks.php:27
    172 #: includes/myaliceai-dashboard.php:46
     172#: includes/myaliceai-dashboard.php:53
    173173msgid "Settings"
    174174msgstr ""
     
    194194msgstr ""
    195195
    196 #: includes/myaliceai-dashboard.php:40
     196#: includes/myaliceai-dashboard.php:47
    197197msgid "MyAlice Logo"
    198198msgstr ""
    199199
    200 #: includes/myaliceai-dashboard.php:45
     200#: includes/myaliceai-dashboard.php:52
    201201msgid "Dashboard"
    202202msgstr ""
    203203
    204 #: includes/myaliceai-dashboard.php:48
     204#: includes/myaliceai-dashboard.php:55
    205205msgid "Review MyAlice"
    206206msgstr ""
    207207
    208 #: includes/myaliceai-dashboard.php:50
     208#: includes/myaliceai-dashboard.php:57
    209209msgid "Help & Support"
    210210msgstr ""
    211211
    212 #: includes/myaliceai-dashboard.php:53
     212#: includes/myaliceai-dashboard.php:60
    213213msgid "Read Documentation"
    214214msgstr ""
    215215
    216 #: includes/myaliceai-dashboard.php:56
     216#: includes/myaliceai-dashboard.php:63
    217217msgid "Watch Tutorials"
    218218msgstr ""
    219219
    220 #: includes/myaliceai-dashboard.php:58
     220#: includes/myaliceai-dashboard.php:65
    221221msgid "Contact Support"
    222222msgstr ""
    223223
    224 #: includes/myaliceai-dashboard.php:70
     224#: includes/myaliceai-dashboard.php:73
     225msgid "Operational"
     226msgstr ""
     227
     228#: includes/myaliceai-dashboard.php:76
     229msgid "Disconnected"
     230msgstr ""
     231
     232#: includes/myaliceai-dashboard.php:91
    225233msgid "Connect with MyAlice"
    226234msgstr ""
    227235
    228 #: includes/myaliceai-dashboard.php:71
     236#: includes/myaliceai-dashboard.php:92
    229237msgid "Already have an account?"
    230238msgstr ""
    231239
    232 #: includes/myaliceai-dashboard.php:72
     240#: includes/myaliceai-dashboard.php:93
    233241msgid "login here"
    234242msgstr ""
    235243
    236 #: includes/myaliceai-dashboard.php:73
     244#: includes/myaliceai-dashboard.php:94
    237245msgid "Don’t have an account?"
    238246msgstr ""
    239247
    240 #: includes/myaliceai-dashboard.php:74
     248#: includes/myaliceai-dashboard.php:95
    241249msgid "signup here"
    242250msgstr ""
    243251
    244 #: includes/myaliceai-dashboard.php:82
     252#: includes/myaliceai-dashboard.php:103
    245253msgid "Full Name"
    246254msgstr ""
    247255
    248 #: includes/myaliceai-dashboard.php:86
     256#: includes/myaliceai-dashboard.php:107
    249257msgid "Email Address"
    250258msgstr ""
    251259
    252 #: includes/myaliceai-dashboard.php:90
     260#: includes/myaliceai-dashboard.php:111
    253261msgid "Password"
    254262msgstr ""
    255263
    256 #: includes/myaliceai-dashboard.php:96
     264#: includes/myaliceai-dashboard.php:117
    257265msgid "Signup & Connect"
    258266msgstr ""
    259267
    260 #: includes/myaliceai-dashboard.php:97
     268#: includes/myaliceai-dashboard.php:118
    261269msgid "Login & Connect"
    262270msgstr ""
    263271
    264 #: includes/myaliceai-dashboard.php:100
     272#: includes/myaliceai-dashboard.php:121
    265273msgid "By proceeding, you agree to the"
    266274msgstr ""
    267275
    268 #: includes/myaliceai-dashboard.php:101
     276#: includes/myaliceai-dashboard.php:122
    269277msgid "Terms & Conditions"
    270278msgstr ""
    271279
    272 #: includes/myaliceai-dashboard.php:102
     280#: includes/myaliceai-dashboard.php:123
    273281msgid "Forgot your credentials?"
    274282msgstr ""
    275283
    276 #: includes/myaliceai-dashboard.php:103
     284#: includes/myaliceai-dashboard.php:124
    277285msgid "Reset Password"
    278286msgstr ""
    279287
    280 #: includes/myaliceai-dashboard.php:111
     288#: includes/myaliceai-dashboard.php:132
    281289msgid "Select the team to connect your store with"
    282290msgstr ""
    283291
    284 #: includes/myaliceai-dashboard.php:112
     292#: includes/myaliceai-dashboard.php:133
    285293msgid "You can connect one store with one team only."
    286294msgstr ""
    287295
    288 #: includes/myaliceai-dashboard.php:126
     296#: includes/myaliceai-dashboard.php:147
    289297msgid "team avatar"
    290298msgstr ""
    291299
    292 #: includes/myaliceai-dashboard.php:134
     300#: includes/myaliceai-dashboard.php:155
    293301msgid "Continue"
    294302msgstr ""
    295303
    296 #: includes/myaliceai-dashboard.php:135
     304#: includes/myaliceai-dashboard.php:156
    297305msgid "If you see any missing teams, it might be because it's already connected. If that isn't the case,"
    298306msgstr ""
    299307
    300 #: includes/myaliceai-dashboard.php:136
     308#: includes/myaliceai-dashboard.php:157
    301309msgid "contact support."
    302310msgstr ""
    303311
    304 #: includes/myaliceai-dashboard.php:144
     312#: includes/myaliceai-dashboard.php:165
    305313msgid "MyAlice needs your permission to work"
    306314msgstr ""
    307315
    308 #: includes/myaliceai-dashboard.php:145
     316#: includes/myaliceai-dashboard.php:166
    309317msgid "Once you grant permission, your website visitors will be able to communicate with you."
    310318msgstr ""
    311319
    312 #: includes/myaliceai-dashboard.php:161
     320#: includes/myaliceai-dashboard.php:182
    313321msgid "Grant Permission"
    314322msgstr ""
    315323
    316 #: includes/myaliceai-dashboard.php:166
     324#: includes/myaliceai-dashboard.php:187
    317325msgid "Your store doesn’t appear to be using a secure connection. We highly recommend serving your entire website over an HTTPS connection to help keep customer data secure."
    318326msgstr ""
    319327
    320 #: includes/myaliceai-dashboard.php:174
     328#: includes/myaliceai-dashboard.php:195
    321329msgid "MyAlice Explore Map"
    322330msgstr ""
    323331
    324 #: includes/myaliceai-dashboard.php:178
     332#: includes/myaliceai-dashboard.php:199
    325333msgid "Explore MyAlice"
    326334msgstr ""
    327335
    328 #: includes/myaliceai-dashboard.php:179
     336#: includes/myaliceai-dashboard.php:200
    329337msgid "Check your inbox for pending conversations, customise the livechat to update brand or automate responses with chatbot."
    330338msgstr ""
    331339
    332 #: includes/myaliceai-dashboard.php:183
    333 msgid "Open MyAlice"
    334 msgstr ""
    335 
    336 #: includes/myaliceai-dashboard.php:185
     340#: includes/myaliceai-dashboard.php:205
    337341msgid "Open Inbox"
    338342msgstr ""
    339343
    340 #: includes/myaliceai-dashboard.php:194
     344#: includes/myaliceai-dashboard.php:213
     345msgid "Sync Changes"
     346msgstr ""
     347
     348#: includes/myaliceai-dashboard.php:223
    341349msgid "Plugin Settings"
    342350msgstr ""
    343351
    344 #: includes/myaliceai-dashboard.php:199
     352#: includes/myaliceai-dashboard.php:228
    345353msgid "Allow chat for logged-in user only"
    346354msgstr ""
    347355
    348 #: includes/myaliceai-dashboard.php:200
     356#: includes/myaliceai-dashboard.php:229
    349357msgid "This will show the livechat in your WooCommerce Store for logged in users only."
    350358msgstr ""
    351359
    352 #: includes/myaliceai-dashboard.php:205
     360#: includes/myaliceai-dashboard.php:234
    353361msgid "Send product view data"
    354362msgstr ""
    355363
    356 #: includes/myaliceai-dashboard.php:206
     364#: includes/myaliceai-dashboard.php:235
    357365msgid "If anyone views a product in your store, this will send the data to MyAlice for your team to view."
    358366msgstr ""
    359367
    360 #: includes/myaliceai-dashboard.php:211
     368#: includes/myaliceai-dashboard.php:240
    361369msgid "Send cart data"
    362370msgstr ""
    363371
    364 #: includes/myaliceai-dashboard.php:212
     372#: includes/myaliceai-dashboard.php:241
    365373msgid "If anyone adds a product in their cart from your store, this will send the data to MyAlice for your team to view."
    366374msgstr ""
    367375
    368 #: includes/myaliceai-dashboard.php:217
     376#: includes/myaliceai-dashboard.php:246
    369377msgid "Hide chat widget"
    370378msgstr ""
    371379
    372 #: includes/myaliceai-dashboard.php:218
     380#: includes/myaliceai-dashboard.php:247
    373381msgid "This will hide the live chat widget from your store. Your visitors will not see the live chat option."
    374382msgstr ""
    375383
    376 #: includes/myaliceai-dashboard.php:223
     384#: includes/myaliceai-dashboard.php:252
    377385msgid "Save Changes"
    378386msgstr ""
    379387
    380 #: includes/myaliceai-dashboard.php:224
     388#: includes/myaliceai-dashboard.php:253
    381389msgid "Back"
    382390msgstr ""
  • myaliceai/tags/2.3.0/myaliceai.php

    r2879321 r2922714  
    44 * Plugin URI:        https://app.getalice.ai/
    55 * Description:       Alice is a Multi-Channel customer service platform for your e-commerce store or online business that centralises all customer interactions and helps to manage and automate customer support.
    6  * Version:           2.2.0
    7  * WC tested up to:   7.4
     6 * Version:           2.3.0
     7 * WC tested up to:   7.7
    88 * Author:            Alice Labs
    99 * Author URI:        https://myalice.ai/
     
    5151
    5252if ( ! defined( 'ALICE_VERSION' ) ) {
    53     define( 'ALICE_VERSION', '2.2.0' );
     53    define( 'ALICE_VERSION', '2.3.0' );
    5454}
    5555
  • myaliceai/tags/2.3.0/readme.txt

    r2879321 r2922714  
    44Tags: WhatsApp, Live Chat, Telegram, Line, Viber, Messenger, Instagram, WhatsApp Chat, Live Chat Helpdesk, Chatbot, WordPress Live Chat, WooCommerce Live Chat
    55Requires at least: 5.0
    6 Tested up to: 6.1
    7 Stable tag: 2.2.0
     6Tested up to: 6.2
     7Stable tag: 2.3.0
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    129129
    130130
     131= 2.3.0 – 07/06/2023 =
     132* Added: WooCommerce API Status Synchronize options
     133
     134
    131135= 2.2.0 – 14/03/2023 =
    132136* Improved: Compatible with WooCommerce 7.4
    133 * Fixed: Network Deactivate option does not work in network site
     137* Fixed: Network Deactivate option does not work on the network site
    134138
    135139
  • myaliceai/trunk/includes/myalice-dashboard-inline-styles.php

    r2821376 r2922714  
    66add_action( 'admin_head', function () { ?>
    77    <style>
     8        @keyframes alice-rotate {
     9            from {
     10                transform: rotate(0deg);
     11            }
     12            to {
     13                transform: rotate(360deg);
     14            }
     15        }
     16
    817        /* === Alice Admin Menu === */
    918        #adminmenu #toplevel_page_myalice_dashboard div.wp-menu-image > img {
     
    390399        }
    391400
     401        #alice-dashboard .alice-dashboard-header .alice-main-menu ul li.--wcapi-status button {
     402            height: 24px;
     403            line-height: 24px;
     404            border-radius: 4px;
     405            border: none;
     406            padding: 0 6px 0 18px;
     407            position: relative;
     408        }
     409
     410        #alice-dashboard .alice-dashboard-header .alice-main-menu ul li.--wcapi-status button::before {
     411            content: "";
     412            position: absolute;
     413            left: 6px;
     414            top: calc(50% - 3px);
     415            height: 6px;
     416            width: 6px;
     417            border-radius: 50%;
     418            display: block;
     419        }
     420
     421        #alice-dashboard .alice-dashboard-header .alice-main-menu ul li.--wcapi-status button.--wcapi-operational {
     422            color: #065F46;
     423            background: #D1FAE5;
     424        }
     425
     426        #alice-dashboard .alice-dashboard-header .alice-main-menu ul li.--wcapi-status button.--wcapi-operational::before {
     427            background: #34D399;
     428        }
     429
     430        #alice-dashboard .alice-dashboard-header .alice-main-menu ul li.--wcapi-status button.--wcapi-disconnected {
     431            color: #991B1B;
     432            background: #FEE2E2;
     433        }
     434
     435        #alice-dashboard .alice-dashboard-header .alice-main-menu ul li.--wcapi-status button.--wcapi-disconnected::before {
     436            background: #F87171;
     437        }
     438
    392439        /* dashboard connect-with-myalice section */
    393440        #alice-dashboard .alice-connect-with-myalice,
     
    575622        }
    576623
     624        #alice-dashboard .alice-explore-myalice .alice-btn.--wc-api-sync-btn span,
     625        #alice-dashboard .alice-explore-myalice .alice-btn.--wc-api-sync-btn svg {
     626            display: inline-block;
     627            vertical-align: middle;
     628        }
     629
     630        #alice-dashboard .alice-explore-myalice .alice-btn.--wc-api-sync-btn svg + svg {
     631            display: none;
     632        }
     633
     634        #alice-dashboard .alice-explore-myalice .alice-btn.--wc-api-sync-btn.--syncing svg {
     635            animation-name: alice-rotate;
     636            animation-duration: 2s;
     637            animation-timing-function: linear;
     638            animation-iteration-count: infinite;
     639        }
     640
     641        #alice-dashboard .alice-explore-myalice .alice-btn.--wc-api-sync-btn.--synced svg {
     642            display: none;
     643        }
     644
     645        #alice-dashboard .alice-explore-myalice .alice-btn.--wc-api-sync-btn.--synced svg + svg {
     646            display: inline-block;
     647        }
     648
    577649        /* dashboard plugin-settings section */
    578650        #alice-dashboard .alice-plugin-settings {
  • myaliceai/trunk/includes/myalice-dashboard-templates-and-scripts.php

    r2879321 r2922714  
    260260                    }
    261261                });
     262            }).on('click', '.--wc-api-sync-btn', function (e) {
     263                e.preventDefault();
     264
     265                var $this = $(this),
     266                    $label = $this.children('span'),
     267                    $wc_status_button = $('li.--wcapi-status button'),
     268                    url = "<?php echo admin_url( 'admin-ajax.php' ); ?>",
     269                    data = {
     270                        "action": "myalice_check_wc_api_status",
     271                        "nonce": "<?php echo wp_create_nonce( 'myaliceai' ); ?>"
     272                    };
     273
     274                $this.addClass('--syncing').removeClass('--synced');
     275                $label.text('Syncing Changes...');
     276
     277                $.post(url, data, function (response) {
     278                    $this.removeClass('--syncing').addClass('--synced');
     279
     280                    if (response.success) {
     281                        $label.text('Changes synced');
     282
     283                        if (response.data.error === false && response.data.success === true) {
     284                            $wc_status_button.removeClass('--wcapi-disconnected').addClass('--wcapi-operational');
     285                            $wc_status_button.text('Operational');
     286                            $wc_status_button.removeAttr('title');
     287                        } else {
     288                            $wc_status_button.removeClass('--wcapi-operational').addClass('--wcapi-disconnected');
     289                            $wc_status_button.text('Disconnected');
     290                            $wc_status_button.attr('title', response.data.message);
     291                            $('#alice-dashboard').removeClass('--explore-myalice').addClass('--needs-your-permission');
     292                        }
     293                    } else {
     294                        $this.removeClass('--syncing --synced');
     295                        $label.text('Changes failed');
     296                    }
     297                });
    262298            });
    263299        })(jQuery);
  • myaliceai/trunk/includes/myalice-helper-functions.php

    r2821376 r2922714  
    4848
    4949function myalice_get_dashboard_class() {
    50     $wc_auth = get_option( 'myaliceai_wc_auth' );
    51     if ( empty( $wc_auth ) ) {
     50    $wc_auth   = get_option( 'myaliceai_wc_auth' );
     51    $wc_status = myalice_is_working_wcapi();
     52    if ( empty( $wc_auth ) || $wc_status['error'] === true ) {
    5253        return '--needs-your-permission';
    5354    }
     
    122123    return false;
    123124}
     125
     126function myalice_is_working_wcapi( $force = false ) {
     127    $wc_api_status = get_transient( 'myaliceai_wc_api_status' );
     128    if ( ! empty( $wc_api_status ) && ! $force ) {
     129        return $wc_api_status;
     130    } else {
     131        $wc_auth         = get_option( 'myaliceai_wc_auth' );
     132        $consumer_key    = empty( $wc_auth['consumer_key'] ) ? '' : $wc_auth['consumer_key'];
     133        $consumer_secret = empty( $wc_auth['consumer_secret'] ) ? '' : $wc_auth['consumer_secret'];;
     134        $request_url     = site_url() . '/wp-json/wc/v3/settings';
     135        $result          = [ 'error' => false, 'message' => '', 'success' => false ];
     136
     137        $request_url = add_query_arg( array(
     138            'consumer_key'    => $consumer_key,
     139            'consumer_secret' => $consumer_secret
     140        ), $request_url );
     141
     142        $response = wp_remote_get( $request_url );
     143
     144        if ( is_wp_error( $response ) ) {
     145            $result['error']   = true;
     146            $result['message'] = $response->get_error_message();
     147        } else {
     148            $body = json_decode( wp_remote_retrieve_body( $response ), true );
     149
     150            if ( $response['response']['code'] === 200 ) {
     151                $result['success'] = true;
     152            } else {
     153                $result['error']   = true;
     154                $result['message'] = $body['message'];
     155            }
     156        }
     157
     158        set_transient( 'myaliceai_wc_api_status', $result, HOUR_IN_SECONDS );
     159
     160        return $result;
     161    }
     162}
  • myaliceai/trunk/includes/myalice-hooks-callback.php

    r2821376 r2922714  
    493493    _e( '<div class="notice notice-error"><p><strong>WooCommerce</strong> is not installed/activated in your site. Please install and activate <a href="plugin-install.php?s=woocommerce&tab=search&type=term" target="_blank">WooCommerce</a> to use MyAlice Plugin. If you want to use MyAlice without WooCommerce, <a href="https://docs.myalice.ai/connect-social-channels/connect-web-app/connect-live-chat" target="_blank">follow this</a>.</p></div>', 'myaliceai' );
    494494}
     495
     496function myalice_check_wc_api_status() {
     497    if ( check_ajax_referer( 'myaliceai', 'nonce' ) ) {
     498        wp_send_json_success( myalice_is_working_wcapi( true ) );
     499    }
     500}
  • myaliceai/trunk/includes/myalice-hooks.php

    r2821376 r2922714  
    8282add_action( 'myalice_admin_notices', 'myalice_chat_customization_admin_notice', 0 );
    8383add_action( 'wp_ajax_myalice_migration', 'myalice_migration_livechat' );
     84add_action( 'wp_ajax_myalice_check_wc_api_status', 'myalice_check_wc_api_status' );
    8485
    8586add_action( 'admin_init', function () {
  • myaliceai/trunk/includes/myaliceai-dashboard.php

    r2821376 r2922714  
    2525        'key_permissions' => $wc_auth_data['key_permissions'],
    2626    ];
     27
    2728    update_option( 'myaliceai_wc_auth', $auth_data, false );
     29}
     30
     31// Update the WC API Status
     32if ( isset( $_GET['page'], $_GET['success'], $_GET['user_id'] ) && $_GET['page'] === 'myalice_dashboard' && $_GET['success'] == 1 && ! empty( $_GET['user_id'] ) ) {
     33    myalice_is_working_wcapi( true );
     34    wp_safe_redirect( admin_url( '?page=myalice_dashboard' ) );
    2835}
    2936
     
    5865                                    <li><a href="https://www.myalice.ai/support" target="_blank"><?php esc_html_e( 'Contact Support', 'myaliceai' ); ?></a></li>
    5966                                </ul>
     67                            </li>
     68                            <li class="--wcapi-status">
     69                                <?php
     70                                $status = myalice_is_working_wcapi();
     71                                if ( $status['error'] === false && $status['success'] === true ) {
     72                                    $status_class = '--wcapi-operational';
     73                                    $status_text  = __( 'Operational', 'myaliceai' );
     74                                } else {
     75                                    $status_class = '--wcapi-disconnected';
     76                                    $status_text  = __( 'Disconnected', 'myaliceai' );
     77                                }
     78
     79                                ?>
     80                                <button class="<?php echo esc_attr( $status_class ); ?>" title="<?php echo esc_attr( $status['message'] ); ?>"><?php echo esc_html( $status_text ); ?></button>
    6081                            </li>
    6182                        </ul>
     
    181202                </div>
    182203                <div class="alice-container">
    183                     <a class="alice-btn alice-btn-lite" href="<?php echo esc_url( 'https://app.myalice.ai/dashboard' ); ?>"><?php esc_html_e( 'Open MyAlice', 'myaliceai' ); ?></a>
    184204                    <a class="alice-btn alice-btn-lite"
    185                        href="<?php echo esc_url( 'https://app.myalice.ai/projects/' . MYALICE_PROJECT_ID . '/chat' ); ?>"><?php esc_html_e( 'Open Inbox', 'myaliceai' ); ?></a>
     205                    href="<?php echo esc_url( 'https://app.myalice.ai/projects/' . MYALICE_PROJECT_ID . '/chat' ); ?>"><?php esc_html_e( 'Open Inbox', 'myaliceai' ); ?></a>
     206                    <a class="alice-btn alice-btn-lite --wc-api-sync-btn">
     207                        <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
     208                            <path d="M16.5915 12.9251H12.8165C12.5955 12.9251 12.3835 13.0129 12.2272 13.1692C12.071 13.3254 11.9832 13.5374 11.9832 13.7584C11.9832 13.9794 12.071 14.1914 12.2272 14.3477C12.3835 14.5039 12.5955 14.5917 12.8165 14.5917H14.8165C13.8973 15.5524 12.7118 16.2162 11.4125 16.4979C10.1131 16.7796 8.75918 16.6664 7.52465 16.1728C6.29012 15.6792 5.23139 14.8277 4.4845 13.7277C3.7376 12.6278 3.33665 11.3296 3.33317 10.0001C3.33317 9.77907 3.24537 9.56711 3.08909 9.41083C2.93281 9.25455 2.72085 9.16675 2.49984 9.16675C2.27882 9.16675 2.06686 9.25455 1.91058 9.41083C1.7543 9.56711 1.6665 9.77907 1.6665 10.0001C1.67091 11.6274 2.15169 13.2178 3.04951 14.5751C3.94733 15.9324 5.22289 16.997 6.71879 17.6378C8.21469 18.2785 9.86545 18.4672 11.4674 18.1806C13.0693 17.894 14.5522 17.1447 15.7332 16.0251V17.5001C15.7332 17.7211 15.821 17.9331 15.9772 18.0893C16.1335 18.2456 16.3455 18.3334 16.5665 18.3334C16.7875 18.3334 16.9995 18.2456 17.1558 18.0893C17.312 17.9331 17.3998 17.7211 17.3998 17.5001V13.7501C17.3978 13.5348 17.3125 13.3286 17.1618 13.1748C17.0111 13.021 16.8067 12.9315 16.5915 12.9251ZM9.99984 1.66675C7.86349 1.67284 5.81108 2.49918 4.2665 3.97508V2.50008C4.2665 2.27907 4.17871 2.06711 4.02243 1.91083C3.86615 1.75455 3.65418 1.66675 3.43317 1.66675C3.21216 1.66675 3.0002 1.75455 2.84391 1.91083C2.68763 2.06711 2.59984 2.27907 2.59984 2.50008V6.25008C2.59984 6.4711 2.68763 6.68306 2.84391 6.83934C3.0002 6.99562 3.21216 7.08341 3.43317 7.08341H7.18317C7.40418 7.08341 7.61615 6.99562 7.77243 6.83934C7.92871 6.68306 8.0165 6.4711 8.0165 6.25008C8.0165 6.02907 7.92871 5.81711 7.77243 5.66083C7.61615 5.50455 7.40418 5.41675 7.18317 5.41675H5.18317C6.10189 4.45664 7.28658 3.793 8.58517 3.511C9.88376 3.22901 11.237 3.34154 12.4712 3.83413C13.7054 4.32673 14.7642 5.17692 15.5117 6.27558C16.2592 7.37424 16.6614 8.67124 16.6665 10.0001C16.6665 10.2211 16.7543 10.4331 16.9106 10.5893C17.0669 10.7456 17.2788 10.8334 17.4998 10.8334C17.7208 10.8334 17.9328 10.7456 18.0891 10.5893C18.2454 10.4331 18.3332 10.2211 18.3332 10.0001C18.3332 8.90573 18.1176 7.8221 17.6988 6.81105C17.28 5.80001 16.6662 4.88135 15.8924 4.10752C15.1186 3.3337 14.1999 2.71987 13.1889 2.30109C12.1778 1.8823 11.0942 1.66675 9.99984 1.66675Z" fill="black"/>
     209                        </svg>
     210                        <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
     211                            <path fill-rule="evenodd" clip-rule="evenodd" d="M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM13.7071 8.70711C14.0976 8.31658 14.0976 7.68342 13.7071 7.29289C13.3166 6.90237 12.6834 6.90237 12.2929 7.29289L9 10.5858L7.70711 9.29289C7.31658 8.90237 6.68342 8.90237 6.29289 9.29289C5.90237 9.68342 5.90237 10.3166 6.29289 10.7071L8.29289 12.7071C8.68342 13.0976 9.31658 13.0976 9.70711 12.7071L13.7071 8.70711Z" fill="#04B25F"/>
     212                        </svg>
     213                        <span><?php esc_html_e( 'Sync Changes', 'myaliceai' ); ?></span>
     214                    </a>
    186215                </div>
    187216            </section>
  • myaliceai/trunk/languages/myaliceai.pot

    r2879321 r2922714  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: MyAlice 2.2.0\n"
     5"Project-Id-Version: MyAlice 2.3.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/myaliceai\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-03-13T18:39:56+00:00\n"
     12"POT-Creation-Date: 2023-06-07T07:43:01+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.6.0\n"
     
    170170
    171171#: includes/myalice-hooks.php:27
    172 #: includes/myaliceai-dashboard.php:46
     172#: includes/myaliceai-dashboard.php:53
    173173msgid "Settings"
    174174msgstr ""
     
    194194msgstr ""
    195195
    196 #: includes/myaliceai-dashboard.php:40
     196#: includes/myaliceai-dashboard.php:47
    197197msgid "MyAlice Logo"
    198198msgstr ""
    199199
    200 #: includes/myaliceai-dashboard.php:45
     200#: includes/myaliceai-dashboard.php:52
    201201msgid "Dashboard"
    202202msgstr ""
    203203
    204 #: includes/myaliceai-dashboard.php:48
     204#: includes/myaliceai-dashboard.php:55
    205205msgid "Review MyAlice"
    206206msgstr ""
    207207
    208 #: includes/myaliceai-dashboard.php:50
     208#: includes/myaliceai-dashboard.php:57
    209209msgid "Help & Support"
    210210msgstr ""
    211211
    212 #: includes/myaliceai-dashboard.php:53
     212#: includes/myaliceai-dashboard.php:60
    213213msgid "Read Documentation"
    214214msgstr ""
    215215
    216 #: includes/myaliceai-dashboard.php:56
     216#: includes/myaliceai-dashboard.php:63
    217217msgid "Watch Tutorials"
    218218msgstr ""
    219219
    220 #: includes/myaliceai-dashboard.php:58
     220#: includes/myaliceai-dashboard.php:65
    221221msgid "Contact Support"
    222222msgstr ""
    223223
    224 #: includes/myaliceai-dashboard.php:70
     224#: includes/myaliceai-dashboard.php:73
     225msgid "Operational"
     226msgstr ""
     227
     228#: includes/myaliceai-dashboard.php:76
     229msgid "Disconnected"
     230msgstr ""
     231
     232#: includes/myaliceai-dashboard.php:91
    225233msgid "Connect with MyAlice"
    226234msgstr ""
    227235
    228 #: includes/myaliceai-dashboard.php:71
     236#: includes/myaliceai-dashboard.php:92
    229237msgid "Already have an account?"
    230238msgstr ""
    231239
    232 #: includes/myaliceai-dashboard.php:72
     240#: includes/myaliceai-dashboard.php:93
    233241msgid "login here"
    234242msgstr ""
    235243
    236 #: includes/myaliceai-dashboard.php:73
     244#: includes/myaliceai-dashboard.php:94
    237245msgid "Don’t have an account?"
    238246msgstr ""
    239247
    240 #: includes/myaliceai-dashboard.php:74
     248#: includes/myaliceai-dashboard.php:95
    241249msgid "signup here"
    242250msgstr ""
    243251
    244 #: includes/myaliceai-dashboard.php:82
     252#: includes/myaliceai-dashboard.php:103
    245253msgid "Full Name"
    246254msgstr ""
    247255
    248 #: includes/myaliceai-dashboard.php:86
     256#: includes/myaliceai-dashboard.php:107
    249257msgid "Email Address"
    250258msgstr ""
    251259
    252 #: includes/myaliceai-dashboard.php:90
     260#: includes/myaliceai-dashboard.php:111
    253261msgid "Password"
    254262msgstr ""
    255263
    256 #: includes/myaliceai-dashboard.php:96
     264#: includes/myaliceai-dashboard.php:117
    257265msgid "Signup & Connect"
    258266msgstr ""
    259267
    260 #: includes/myaliceai-dashboard.php:97
     268#: includes/myaliceai-dashboard.php:118
    261269msgid "Login & Connect"
    262270msgstr ""
    263271
    264 #: includes/myaliceai-dashboard.php:100
     272#: includes/myaliceai-dashboard.php:121
    265273msgid "By proceeding, you agree to the"
    266274msgstr ""
    267275
    268 #: includes/myaliceai-dashboard.php:101
     276#: includes/myaliceai-dashboard.php:122
    269277msgid "Terms & Conditions"
    270278msgstr ""
    271279
    272 #: includes/myaliceai-dashboard.php:102
     280#: includes/myaliceai-dashboard.php:123
    273281msgid "Forgot your credentials?"
    274282msgstr ""
    275283
    276 #: includes/myaliceai-dashboard.php:103
     284#: includes/myaliceai-dashboard.php:124
    277285msgid "Reset Password"
    278286msgstr ""
    279287
    280 #: includes/myaliceai-dashboard.php:111
     288#: includes/myaliceai-dashboard.php:132
    281289msgid "Select the team to connect your store with"
    282290msgstr ""
    283291
    284 #: includes/myaliceai-dashboard.php:112
     292#: includes/myaliceai-dashboard.php:133
    285293msgid "You can connect one store with one team only."
    286294msgstr ""
    287295
    288 #: includes/myaliceai-dashboard.php:126
     296#: includes/myaliceai-dashboard.php:147
    289297msgid "team avatar"
    290298msgstr ""
    291299
    292 #: includes/myaliceai-dashboard.php:134
     300#: includes/myaliceai-dashboard.php:155
    293301msgid "Continue"
    294302msgstr ""
    295303
    296 #: includes/myaliceai-dashboard.php:135
     304#: includes/myaliceai-dashboard.php:156
    297305msgid "If you see any missing teams, it might be because it's already connected. If that isn't the case,"
    298306msgstr ""
    299307
    300 #: includes/myaliceai-dashboard.php:136
     308#: includes/myaliceai-dashboard.php:157
    301309msgid "contact support."
    302310msgstr ""
    303311
    304 #: includes/myaliceai-dashboard.php:144
     312#: includes/myaliceai-dashboard.php:165
    305313msgid "MyAlice needs your permission to work"
    306314msgstr ""
    307315
    308 #: includes/myaliceai-dashboard.php:145
     316#: includes/myaliceai-dashboard.php:166
    309317msgid "Once you grant permission, your website visitors will be able to communicate with you."
    310318msgstr ""
    311319
    312 #: includes/myaliceai-dashboard.php:161
     320#: includes/myaliceai-dashboard.php:182
    313321msgid "Grant Permission"
    314322msgstr ""
    315323
    316 #: includes/myaliceai-dashboard.php:166
     324#: includes/myaliceai-dashboard.php:187
    317325msgid "Your store doesn’t appear to be using a secure connection. We highly recommend serving your entire website over an HTTPS connection to help keep customer data secure."
    318326msgstr ""
    319327
    320 #: includes/myaliceai-dashboard.php:174
     328#: includes/myaliceai-dashboard.php:195
    321329msgid "MyAlice Explore Map"
    322330msgstr ""
    323331
    324 #: includes/myaliceai-dashboard.php:178
     332#: includes/myaliceai-dashboard.php:199
    325333msgid "Explore MyAlice"
    326334msgstr ""
    327335
    328 #: includes/myaliceai-dashboard.php:179
     336#: includes/myaliceai-dashboard.php:200
    329337msgid "Check your inbox for pending conversations, customise the livechat to update brand or automate responses with chatbot."
    330338msgstr ""
    331339
    332 #: includes/myaliceai-dashboard.php:183
    333 msgid "Open MyAlice"
    334 msgstr ""
    335 
    336 #: includes/myaliceai-dashboard.php:185
     340#: includes/myaliceai-dashboard.php:205
    337341msgid "Open Inbox"
    338342msgstr ""
    339343
    340 #: includes/myaliceai-dashboard.php:194
     344#: includes/myaliceai-dashboard.php:213
     345msgid "Sync Changes"
     346msgstr ""
     347
     348#: includes/myaliceai-dashboard.php:223
    341349msgid "Plugin Settings"
    342350msgstr ""
    343351
    344 #: includes/myaliceai-dashboard.php:199
     352#: includes/myaliceai-dashboard.php:228
    345353msgid "Allow chat for logged-in user only"
    346354msgstr ""
    347355
    348 #: includes/myaliceai-dashboard.php:200
     356#: includes/myaliceai-dashboard.php:229
    349357msgid "This will show the livechat in your WooCommerce Store for logged in users only."
    350358msgstr ""
    351359
    352 #: includes/myaliceai-dashboard.php:205
     360#: includes/myaliceai-dashboard.php:234
    353361msgid "Send product view data"
    354362msgstr ""
    355363
    356 #: includes/myaliceai-dashboard.php:206
     364#: includes/myaliceai-dashboard.php:235
    357365msgid "If anyone views a product in your store, this will send the data to MyAlice for your team to view."
    358366msgstr ""
    359367
    360 #: includes/myaliceai-dashboard.php:211
     368#: includes/myaliceai-dashboard.php:240
    361369msgid "Send cart data"
    362370msgstr ""
    363371
    364 #: includes/myaliceai-dashboard.php:212
     372#: includes/myaliceai-dashboard.php:241
    365373msgid "If anyone adds a product in their cart from your store, this will send the data to MyAlice for your team to view."
    366374msgstr ""
    367375
    368 #: includes/myaliceai-dashboard.php:217
     376#: includes/myaliceai-dashboard.php:246
    369377msgid "Hide chat widget"
    370378msgstr ""
    371379
    372 #: includes/myaliceai-dashboard.php:218
     380#: includes/myaliceai-dashboard.php:247
    373381msgid "This will hide the live chat widget from your store. Your visitors will not see the live chat option."
    374382msgstr ""
    375383
    376 #: includes/myaliceai-dashboard.php:223
     384#: includes/myaliceai-dashboard.php:252
    377385msgid "Save Changes"
    378386msgstr ""
    379387
    380 #: includes/myaliceai-dashboard.php:224
     388#: includes/myaliceai-dashboard.php:253
    381389msgid "Back"
    382390msgstr ""
  • myaliceai/trunk/myaliceai.php

    r2879321 r2922714  
    44 * Plugin URI:        https://app.getalice.ai/
    55 * Description:       Alice is a Multi-Channel customer service platform for your e-commerce store or online business that centralises all customer interactions and helps to manage and automate customer support.
    6  * Version:           2.2.0
    7  * WC tested up to:   7.4
     6 * Version:           2.3.0
     7 * WC tested up to:   7.7
    88 * Author:            Alice Labs
    99 * Author URI:        https://myalice.ai/
     
    5151
    5252if ( ! defined( 'ALICE_VERSION' ) ) {
    53     define( 'ALICE_VERSION', '2.2.0' );
     53    define( 'ALICE_VERSION', '2.3.0' );
    5454}
    5555
  • myaliceai/trunk/readme.txt

    r2879321 r2922714  
    44Tags: WhatsApp, Live Chat, Telegram, Line, Viber, Messenger, Instagram, WhatsApp Chat, Live Chat Helpdesk, Chatbot, WordPress Live Chat, WooCommerce Live Chat
    55Requires at least: 5.0
    6 Tested up to: 6.1
    7 Stable tag: 2.2.0
     6Tested up to: 6.2
     7Stable tag: 2.3.0
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    129129
    130130
     131= 2.3.0 – 07/06/2023 =
     132* Added: WooCommerce API Status Synchronize options
     133
     134
    131135= 2.2.0 – 14/03/2023 =
    132136* Improved: Compatible with WooCommerce 7.4
    133 * Fixed: Network Deactivate option does not work in network site
     137* Fixed: Network Deactivate option does not work on the network site
    134138
    135139
Note: See TracChangeset for help on using the changeset viewer.