Plugin Directory

Changeset 3764244


Ignore:
Timestamp:
10/25/2026 09:42:01 AM (25 hours ago)
Author:
gian0186
Message:

Version 1.1.0: optional live chat widget

Location:
bugalou-for-woocommerce
Files:
11 added
4 edited

Legend:

Unmodified
Added
Removed
  • bugalou-for-woocommerce/trunk/bugalou-for-woocommerce.php

    r3764151 r3764244  
    44 * Plugin URI:        https://bugalou.com/en/integrations/woocommerce
    55 * Description:       Connect your WooCommerce store to Bugalou's AI customer service platform in one click — order tracking, AI chatbot answers, and automated support across WhatsApp, email, and web chat.
    6  * Version:           1.0.0
     6 * Version:           1.1.0
    77 * Requires at least: 6.3
    88 * Requires PHP:      7.4
    … …  
    2121}
    2222
    23 define( 'BUGALOU_WC_VERSION', '1.0.0' );
     23define( 'BUGALOU_WC_VERSION', '1.1.0' );
    2424define( 'BUGALOU_WC_PLUGIN_FILE', __FILE__ );
    2525define( 'BUGALOU_WC_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    … …  
    6565        require_once BUGALOU_WC_PLUGIN_DIR . 'includes/class-bugalou-connect.php';
    6666        Bugalou_Connect::init();
     67
     68        require_once BUGALOU_WC_PLUGIN_DIR . 'includes/class-bugalou-widget.php';
     69        Bugalou_Widget::init();
    6770}
    6871add_action( 'plugins_loaded', 'bugalou_wc_init' );
  • bugalou-for-woocommerce/trunk/includes/class-bugalou-connect.php

    r3764151 r3764244  
    123123                        <?php endif; ?>
    124124
     125                        <?php if ( 'invalid_widget_key' === $error ) : ?>
     126                                <div class="notice notice-error">
     127                                        <p><?php esc_html_e( 'That widget key doesn\'t look right. Copy it again from Channels → Website chat → Installation in your Bugalou dashboard.', 'bugalou-for-woocommerce' ); ?></p>
     128                                </div>
     129                        <?php endif; ?>
     130
     131                        <?php if ( isset( $_GET['bugalou_widget_saved'] ) ) : // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- display-only flag. ?>
     132                                <div class="notice notice-success">
     133                                        <p><?php esc_html_e( 'Widget settings saved.', 'bugalou-for-woocommerce' ); ?></p>
     134                                </div>
     135                        <?php endif; ?>
     136
    125137                        <?php if ( 'connected' === $status ) : ?>
    126138                                <div class="notice notice-success">
    … …  
    173185                                <?php esc_html_e( 'You\'ll be redirected to WooCommerce\'s own authorization screen to approve access — Bugalou never sees your WordPress login.', 'bugalou-for-woocommerce' ); ?>
    174186                        </p>
     187
     188                        <?php Bugalou_Widget::render_card(); ?>
    175189                </div>
    176190                <?php
  • bugalou-for-woocommerce/trunk/readme.txt

    r3764200 r3764244  
    77WC requires at least: 8.0
    88WC tested up to: 11.2
    9 Stable tag: 1.0.0
     9Stable tag: 1.1.0
    1010License: GPLv2 or later
    1111License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    2323* Notify customers automatically on order updates (new order, shipped, delivered)
    2424* Answer product and shipping questions using your store's own data
     25* Show the Bugalou live chat widget on your store (optional, off by default)
    2526
    2627= How it works =
    … …  
    3435That's it — Bugalou automatically sets up the order webhooks it needs. No manual API key copying required.
    3536
     37= Live chat widget (optional) =
     38
     39Want the Bugalou chat on your store? Copy your widget key from Channels → Website chat → Installation in the Bugalou dashboard, paste it under WooCommerce → Bugalou → Website chat widget, tick "Show the chat widget on my store" and save. No theme editing needed. The widget's colours, texts and AI behaviour are managed in your Bugalou dashboard.
     40
    3641= Bugalou account required =
    3742
    … …  
    4449* What is sent, and when: only when you click "Connect to Bugalou", your browser goes to WooCommerce's own authorization screen on your site. After you approve, WooCommerce (not this plugin) sends a REST API Consumer Key/Secret for your store, your store URL and the connect code to Bugalou's server at https://app.bugalou.com/api/woocommerce/oauth/callback.
    4550* What Bugalou does with it: Bugalou uses this access to read order, product and customer information (name, email, phone, shipping address, order status) and to register order webhooks, solely to power customer service replies and order notifications for your store.
    46 * The plugin itself sends no other data, loads no remote scripts and does not track visitors.
     51* Live chat widget (optional, off by default): only when you paste a widget key and enable "Show the chat widget on my store", your store loads Bugalou's chat script from https://bugalou.com/widget/loader.js for visitors. The script loads your widget settings from https://bugalou.com and, when a visitor uses the chat, sends the messages they type, any name, email or file they choose to share and their browser language to Bugalou, so your team and the AI assistant can answer in your Bugalou inbox. As with any web request, the visitor's IP address and the page address are visible to Bugalou's server. The script stores a chat session id in the visitor's browser (local storage) so the conversation continues across pages.
     52* Apart from the above, the plugin sends no data, loads no remote scripts and does not track visitors.
    4753
    4854* [Bugalou terms of service](https://bugalou.com/en/terms)
    … …  
    6571Read/write access to orders, products, and webhooks — needed to look up order status and register the webhooks Bugalou uses to detect new and updated orders.
    6672
     73= Do I need to connect my store to use the chat widget? =
     74
     75No. The widget works with just your widget key. Connecting the store as well lets the chat answer order questions with live order data.
     76
    6777= Does this plugin work with High-Performance Order Storage (HPOS)? =
    6878
    … …  
    7888== Changelog ==
    7989
     90= 1.1.0 =
     91* New: optional Bugalou live chat widget on your store. Paste your widget key and switch it on, no theme editing needed.
     92
    8093= 1.0.0 =
    8194* Initial release — one-click store connection via WooCommerce's REST API authorization flow.
  • bugalou-for-woocommerce/trunk/uninstall.php

    r3764151 r3764244  
    77
    88delete_option( 'bugalou_wc_connect_status' );
     9delete_option( 'bugalou_wc_widget_key' );
     10delete_option( 'bugalou_wc_widget_enabled' );
Note: See TracChangeset for help on using the changeset viewer.