Plugin Directory

Changeset 3211100


Ignore:
Timestamp:
12/20/2024 01:57:12 PM (15 months ago)
Author:
ordersyncplugin
Message:

Update to version 1.11.2 from GitHub

Location:
order-sync-with-google-sheets-for-woocommerce
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • order-sync-with-google-sheets-for-woocommerce/tags/1.11.2/includes/classes/class-popup.php

    r3201033 r3211100  
    2727    class Popup {
    2828
    29             /**
    30             * Time of banner install.
    31             *
    32             * @var int
    33             */
     29        /**
     30        * Time of banner install.
     31        *
     32        * @var int
     33        */
    3434        protected $osgsw_install_time;
    3535
     
    5757            $this->osgsw_update_notice = get_option( 'osgsw_update_notice' );
    5858            $this->current_dir = dirname( __DIR__ );
    59             add_action( 'admin_init', [ $this, 'osgsw_show_popup' ] );
     59            // add_action( 'admin_init', [ $this, 'osgsw_show_popup' ] );
    6060            add_action( 'wp_ajax_osgsw_popup_handle', [ $this, 'handle_popup' ] );
    6161        }
     
    9898            } else {
    9999                $days_elapsed = floor( ( time() - $this->osgsw_install_time ) / ( 60 * 60 * 24 ) );
     100           
    100101                $days_update_elapsed = floor( ( time() - absint( $this->osgsw_update_notice ) ) / ( 60 * 60 * 24 ) );
    101                 if ( ( $days_elapsed >= intval( $days_count ) && ( '0' === $days_count || '7' === $days_count || '14' === $days_count ) ) ) {
     102                if ( ( $days_elapsed >= intval( $days_count ) && ( '0' == $days_count || '7' === $days_count || '14' === $days_count ) ) ) {
    102103                    add_action( 'admin_footer', [ $this, 'osgsw_rating_popup' ] );
    103104                }
     
    150151                            <div class="osgsw-days-dropdown">
    151152                                <div class="selected-option" data-days="7"><?php esc_html_e( '7 Days', 'order-sync-with-google-sheets-for-woocommerce' ); ?></div>
    152                                 <ul class="osgsw_options">
     153                                <ul class="options">
    153154                                    <li data-value="7"><?php esc_html_e( '7 Days', 'order-sync-with-google-sheets-for-woocommerce' ); ?></li>
    154155                                    <li data-value="14"><?php esc_html_e( '14 Days', 'order-sync-with-google-sheets-for-woocommerce' ); ?></li>
  • order-sync-with-google-sheets-for-woocommerce/tags/1.11.2/order-sync-with-google-sheets-for-woocommerce.php

    r3210299 r3211100  
    44 * Plugin URI: https://wcordersync.com/
    55 * Description: Sync WooCommerce orders with Google Sheets. Perform WooCommerce order sync, e-commerce order management and sales order management from Google Sheets.
    6  * Version: 1.11.1
     6 * Version: 1.11.2
    77 * Author: WC Order Sync
    88 * Author URI: https://wcordersync.com/
     
    2121 */
    2222define( 'OSGSW_FILE', __FILE__ );
    23 define( 'OSGSW_VERSION', '1.11.1' );
     23define( 'OSGSW_VERSION', '1.11.2' );
    2424/**
    2525 * Loading base file
  • order-sync-with-google-sheets-for-woocommerce/tags/1.11.2/readme.txt

    r3210299 r3211100  
    55Tested up to: 6.7
    66Requires PHP: 5.6
    7 Stable tag: 1.11.1
     7Stable tag: 1.11.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    152152== Changelog ==
    153153
     154= 1.11.2 - 20 Dec 2024 =
     155* **Fix**: Updated rating popup module
     156
    154157= 1.11.1 - 19 Dec 2024 =
    155158* **Fix**: Updated the settings UI by eliminating duplicate SKU options.
  • order-sync-with-google-sheets-for-woocommerce/trunk/includes/classes/class-popup.php

    r3201033 r3211100  
    2727    class Popup {
    2828
    29             /**
    30             * Time of banner install.
    31             *
    32             * @var int
    33             */
     29        /**
     30        * Time of banner install.
     31        *
     32        * @var int
     33        */
    3434        protected $osgsw_install_time;
    3535
     
    5757            $this->osgsw_update_notice = get_option( 'osgsw_update_notice' );
    5858            $this->current_dir = dirname( __DIR__ );
    59             add_action( 'admin_init', [ $this, 'osgsw_show_popup' ] );
     59            // add_action( 'admin_init', [ $this, 'osgsw_show_popup' ] );
    6060            add_action( 'wp_ajax_osgsw_popup_handle', [ $this, 'handle_popup' ] );
    6161        }
     
    9898            } else {
    9999                $days_elapsed = floor( ( time() - $this->osgsw_install_time ) / ( 60 * 60 * 24 ) );
     100           
    100101                $days_update_elapsed = floor( ( time() - absint( $this->osgsw_update_notice ) ) / ( 60 * 60 * 24 ) );
    101                 if ( ( $days_elapsed >= intval( $days_count ) && ( '0' === $days_count || '7' === $days_count || '14' === $days_count ) ) ) {
     102                if ( ( $days_elapsed >= intval( $days_count ) && ( '0' == $days_count || '7' === $days_count || '14' === $days_count ) ) ) {
    102103                    add_action( 'admin_footer', [ $this, 'osgsw_rating_popup' ] );
    103104                }
     
    150151                            <div class="osgsw-days-dropdown">
    151152                                <div class="selected-option" data-days="7"><?php esc_html_e( '7 Days', 'order-sync-with-google-sheets-for-woocommerce' ); ?></div>
    152                                 <ul class="osgsw_options">
     153                                <ul class="options">
    153154                                    <li data-value="7"><?php esc_html_e( '7 Days', 'order-sync-with-google-sheets-for-woocommerce' ); ?></li>
    154155                                    <li data-value="14"><?php esc_html_e( '14 Days', 'order-sync-with-google-sheets-for-woocommerce' ); ?></li>
  • order-sync-with-google-sheets-for-woocommerce/trunk/order-sync-with-google-sheets-for-woocommerce.php

    r3210299 r3211100  
    44 * Plugin URI: https://wcordersync.com/
    55 * Description: Sync WooCommerce orders with Google Sheets. Perform WooCommerce order sync, e-commerce order management and sales order management from Google Sheets.
    6  * Version: 1.11.1
     6 * Version: 1.11.2
    77 * Author: WC Order Sync
    88 * Author URI: https://wcordersync.com/
     
    2121 */
    2222define( 'OSGSW_FILE', __FILE__ );
    23 define( 'OSGSW_VERSION', '1.11.1' );
     23define( 'OSGSW_VERSION', '1.11.2' );
    2424/**
    2525 * Loading base file
  • order-sync-with-google-sheets-for-woocommerce/trunk/readme.txt

    r3210299 r3211100  
    55Tested up to: 6.7
    66Requires PHP: 5.6
    7 Stable tag: 1.11.1
     7Stable tag: 1.11.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    152152== Changelog ==
    153153
     154= 1.11.2 - 20 Dec 2024 =
     155* **Fix**: Updated rating popup module
     156
    154157= 1.11.1 - 19 Dec 2024 =
    155158* **Fix**: Updated the settings UI by eliminating duplicate SKU options.
Note: See TracChangeset for help on using the changeset viewer.