Plugin Directory

Changeset 3034458


Ignore:
Timestamp:
02/12/2024 09:54:08 AM (2 years ago)
Author:
tabbyai
Message:

Version 4.9.8 with small fixes

Location:
tabby-checkout
Files:
5 edited
26 copied

Legend:

Unmodified
Added
Removed
  • tabby-checkout/tags/4.9.8/includes/class-wc-gateway-tabby-checkout-base.php

    r3019225 r3034458  
    238238            $code = WC()->customer->get_shipping_country() ?: WC()->customer->get_billing_country();
    239239        }
    240         if ($code == 'undefined') $code = wc_get_base_location()['country'];
     240        if ($code == 'undefined' || empty($code)) $code = wc_get_base_location()['country'];
    241241        return $code;
    242242    }
  • tabby-checkout/tags/4.9.8/includes/class-wc-tabby-promo.php

    r3019225 r3034458  
    9999            "phone"     => self::getPhone(),
    100100            "source"    => self::getSource(),
     101            "sourcePlugin"=> 'woo',
    101102            "theme"     => self::getTheme(),
    102103            "installmentsCount" => self::getInstallmentsCount(),
  • tabby-checkout/tags/4.9.8/js/tabby.js

    r2987288 r3034458  
    11jQuery(document).ready(function () {
    2     jQuery('form.checkout input').on('change', updateTabbyCheckout);
     2    jQuery('form input').on('change', updateTabbyCheckout);
    33    jQuery(document.body).on('updated_checkout', updateTabbyCheckout);
    44   
     
    2727        this.actualSession = 0;
    2828        // update payment modules on phone/email change
    29         jQuery( 'form.checkout' ).on(
     29        jQuery( 'form' ).on(
    3030            'change',
    3131            '#billing_email, #billing_phone',
     
    4040        jQuery( document.body ).bind( 'payment_method_selected', this.updatePlaceOrderButton );
    4141        for (var i in this.methods) {
    42             jQuery( 'form.checkout' ).bind( 'checkout_place_order_tabby_' + this.methods[i], this.updatePaymentIdField.bind(this));
     42            jQuery( 'form' ).bind( 'checkout_place_order_tabby_' + this.methods[i], this.updatePaymentIdField.bind(this));
    4343        }
    4444        this.style = document.createElement('style');
     
    147147    unblockForm() {
    148148        try {
    149             jQuery('form.checkout').removeClass( 'processing' ).unblock();
     149            jQuery('form').removeClass( 'processing' ).unblock();
    150150        } catch (error) {
    151151            if (tabbyRenderer.config.debug) console.log(error);
  • tabby-checkout/tags/4.9.8/readme.txt

    r3019225 r3034458  
    44Requires at least: 5.7
    55Tested up to: 6.4
    6 Stable tag: 4.9.5
     6Stable tag: 4.9.8
    77Requires PHP: 7.0
    88License: GPLv3
  • tabby-checkout/tags/4.9.8/tabby-checkout.php

    r3019225 r3034458  
    44 * Plugin URI: https://tabby.ai/
    55 * Description: Tabby Checkout
    6  * Version: 4.9.5
     6 * Version: 4.9.8
    77 * Author: Tabby
    88 * Author URI: https://tabby.ai
     
    1414defined( 'ABSPATH' ) || exit;
    1515
    16 define ('MODULE_TABBY_CHECKOUT_VERSION', '4.9.5');
     16define ('MODULE_TABBY_CHECKOUT_VERSION', '4.9.8');
    1717define ('TABBY_CHECKOUT_DOMAIN', 'checkout.tabby.ai');
    1818define ('TABBY_CHECKOUT_API_DOMAIN', 'api.tabby.ai');
  • tabby-checkout/trunk/includes/class-wc-gateway-tabby-checkout-base.php

    r3019225 r3034458  
    238238            $code = WC()->customer->get_shipping_country() ?: WC()->customer->get_billing_country();
    239239        }
    240         if ($code == 'undefined') $code = wc_get_base_location()['country'];
     240        if ($code == 'undefined' || empty($code)) $code = wc_get_base_location()['country'];
    241241        return $code;
    242242    }
  • tabby-checkout/trunk/includes/class-wc-tabby-promo.php

    r3019225 r3034458  
    9999            "phone"     => self::getPhone(),
    100100            "source"    => self::getSource(),
     101            "sourcePlugin"=> 'woo',
    101102            "theme"     => self::getTheme(),
    102103            "installmentsCount" => self::getInstallmentsCount(),
  • tabby-checkout/trunk/js/tabby.js

    r2987288 r3034458  
    11jQuery(document).ready(function () {
    2     jQuery('form.checkout input').on('change', updateTabbyCheckout);
     2    jQuery('form input').on('change', updateTabbyCheckout);
    33    jQuery(document.body).on('updated_checkout', updateTabbyCheckout);
    44   
     
    2727        this.actualSession = 0;
    2828        // update payment modules on phone/email change
    29         jQuery( 'form.checkout' ).on(
     29        jQuery( 'form' ).on(
    3030            'change',
    3131            '#billing_email, #billing_phone',
     
    4040        jQuery( document.body ).bind( 'payment_method_selected', this.updatePlaceOrderButton );
    4141        for (var i in this.methods) {
    42             jQuery( 'form.checkout' ).bind( 'checkout_place_order_tabby_' + this.methods[i], this.updatePaymentIdField.bind(this));
     42            jQuery( 'form' ).bind( 'checkout_place_order_tabby_' + this.methods[i], this.updatePaymentIdField.bind(this));
    4343        }
    4444        this.style = document.createElement('style');
     
    147147    unblockForm() {
    148148        try {
    149             jQuery('form.checkout').removeClass( 'processing' ).unblock();
     149            jQuery('form').removeClass( 'processing' ).unblock();
    150150        } catch (error) {
    151151            if (tabbyRenderer.config.debug) console.log(error);
  • tabby-checkout/trunk/readme.txt

    r3019225 r3034458  
    44Requires at least: 5.7
    55Tested up to: 6.4
    6 Stable tag: 4.9.5
     6Stable tag: 4.9.8
    77Requires PHP: 7.0
    88License: GPLv3
  • tabby-checkout/trunk/tabby-checkout.php

    r3019225 r3034458  
    44 * Plugin URI: https://tabby.ai/
    55 * Description: Tabby Checkout
    6  * Version: 4.9.5
     6 * Version: 4.9.8
    77 * Author: Tabby
    88 * Author URI: https://tabby.ai
     
    1414defined( 'ABSPATH' ) || exit;
    1515
    16 define ('MODULE_TABBY_CHECKOUT_VERSION', '4.9.5');
     16define ('MODULE_TABBY_CHECKOUT_VERSION', '4.9.8');
    1717define ('TABBY_CHECKOUT_DOMAIN', 'checkout.tabby.ai');
    1818define ('TABBY_CHECKOUT_API_DOMAIN', 'api.tabby.ai');
Note: See TracChangeset for help on using the changeset viewer.