Plugin Directory

Changeset 3292256


Ignore:
Timestamp:
05/13/2025 05:40:22 AM (9 months ago)
Author:
themepaste
Message:

Update to version 1.0.3 from GitHub

Location:
shipping-manager
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • shipping-manager/tags/1.0.3/app/Classes/Front.php

    r3291937 r3292256  
    5252    public function __construct() {
    5353        $this->shipping_calculator_settings   = get_option( 'tpsm-shipping-calculator_settings' );
    54         $this->is_shipping_calculator_enable  = tpsm_isset( $this->shipping_calculator_settings['shipping-calculator-enable'] );
    55         $this->is_enable_location_field       = tpsm_isset( $this->shipping_calculator_settings['enable-location-field'] );
    56         $this->shipping_calculator_position   = tpsm_isset( $this->shipping_calculator_settings['shipping-calculator-position'] );
    57 
    58         // $this->shipping_calculator_settings_fields = tpsm_shipping_calculator_settings_fields();
     54        $this->is_shipping_calculator_enable  = tpsm_isset( $this->shipping_calculator_settings['shipping-calculator-enable'] ?? '' );
     55        $this->is_enable_location_field       = tpsm_isset( $this->shipping_calculator_settings['enable-location-field'] ?? '' );
     56        $this->shipping_calculator_position   = tpsm_isset( $this->shipping_calculator_settings['shipping-calculator-position'] ?? '' );
    5957
    6058        // Enqueue frontend assets.
  • shipping-manager/tags/1.0.3/app/Classes/Woocommerce/FreeShipping.php

    r3291937 r3292256  
    122122            $minimum_cart_amount = $this->cart_amount;
    123123
    124             $progress_bar_value = ( $cart_total / $minimum_cart_amount ) * 100;
    125 
    126             if ( $minimum_cart_amount > $cart_total ) {
    127                 printf(
    128                     '<div class="tpsm-free-shipping-bar-wrapper" %3$s>
    129                         <span>%1$s</span>
    130                         <progress value="%2$s" max="100"></progress>
    131                     </div>',
    132                     esc_html( $this->shipping_bar_message( $minimum_cart_amount - $cart_total ) ), // Message showing remaining amount
    133                     esc_html( $progress_bar_value ),
    134                     wp_kses_post( $this->shipping_bar_styles() ),
    135                 );
     124            if( !empty( $minimum_cart_amount ) && $minimum_cart_amount > 0 ) {
     125                $progress_bar_value = ( $cart_total / $minimum_cart_amount ) * 100;
     126
     127                if ( $minimum_cart_amount > $cart_total ) {
     128                    printf(
     129                        '<div class="tpsm-free-shipping-bar-wrapper" %3$s>
     130                            <span>%1$s</span>
     131                            <progress value="%2$s" max="100"></progress>
     132                        </div>',
     133                        esc_html( $this->shipping_bar_message( $minimum_cart_amount - $cart_total ) ), // Message showing remaining amount
     134                        esc_html( $progress_bar_value ),
     135                        wp_kses_post( $this->shipping_bar_styles() ),
     136                    );
     137                }
    136138            }
    137139        }
  • shipping-manager/tags/1.0.3/readme.txt

    r3292246 r3292256  
    1 === Shipping Manager: The all-in-one solution for eCommerce shipping automation ===
     1=== Shipping Manager: All in one Shipping Solution ===
    22Contributors: themepaste, habibnote
    33Tags: shipping manager, woocommerce shipping, flexible shipping, table rate shipping
     
    77WC tested up to: 9.8
    88Requires PHP: 7.0
    9 Stable tag: 1.0.2
     9Stable tag: 1.0.3
    1010License: GPLv3 or later
    1111License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    205205== Changelog ==
    206206
    207 = v1.0.1, v1.0.2 - 2025.05.13 = 
     207= v1.0.1 - v1.0.3 - 2025.05.13 = 
    208208* [fix] Fix issues.
    209209
  • shipping-manager/tags/1.0.3/shipping-manager.php

    r3292246 r3292256  
    44 * Plugin URI:        https://themepaste.com/product/wordpress-plugins/shipping-manager-for-woocommerce
    55 * Description:       Optimize WooCommerce shipping with dynamic rules, box management & real-time rates. Boost profits & customer satisfaction.
    6  * Version:           1.0.2
     6 * Version:           1.0.3
    77 * Requires at least: 5.8
    88 * Requires PHP:      7.0
     
    4141
    4242       define( 'TPSM_PLUGIN_FILE', __FILE__ );
    43        define( 'TPSM_PLUGIN_VERSION', '1.0.2' );
     43       define( 'TPSM_PLUGIN_VERSION', '1.0.3' );
    4444       define( 'TPSM_PLUGIN_DIRNAME', dirname( TPSM_PLUGIN_FILE ) );
    4545       define( 'TPSM_PLUGIN_BASENAME', plugin_basename( TPSM_PLUGIN_FILE ) );
  • shipping-manager/trunk/app/Classes/Front.php

    r3291937 r3292256  
    5252    public function __construct() {
    5353        $this->shipping_calculator_settings   = get_option( 'tpsm-shipping-calculator_settings' );
    54         $this->is_shipping_calculator_enable  = tpsm_isset( $this->shipping_calculator_settings['shipping-calculator-enable'] );
    55         $this->is_enable_location_field       = tpsm_isset( $this->shipping_calculator_settings['enable-location-field'] );
    56         $this->shipping_calculator_position   = tpsm_isset( $this->shipping_calculator_settings['shipping-calculator-position'] );
    57 
    58         // $this->shipping_calculator_settings_fields = tpsm_shipping_calculator_settings_fields();
     54        $this->is_shipping_calculator_enable  = tpsm_isset( $this->shipping_calculator_settings['shipping-calculator-enable'] ?? '' );
     55        $this->is_enable_location_field       = tpsm_isset( $this->shipping_calculator_settings['enable-location-field'] ?? '' );
     56        $this->shipping_calculator_position   = tpsm_isset( $this->shipping_calculator_settings['shipping-calculator-position'] ?? '' );
    5957
    6058        // Enqueue frontend assets.
  • shipping-manager/trunk/app/Classes/Woocommerce/FreeShipping.php

    r3291937 r3292256  
    122122            $minimum_cart_amount = $this->cart_amount;
    123123
    124             $progress_bar_value = ( $cart_total / $minimum_cart_amount ) * 100;
    125 
    126             if ( $minimum_cart_amount > $cart_total ) {
    127                 printf(
    128                     '<div class="tpsm-free-shipping-bar-wrapper" %3$s>
    129                         <span>%1$s</span>
    130                         <progress value="%2$s" max="100"></progress>
    131                     </div>',
    132                     esc_html( $this->shipping_bar_message( $minimum_cart_amount - $cart_total ) ), // Message showing remaining amount
    133                     esc_html( $progress_bar_value ),
    134                     wp_kses_post( $this->shipping_bar_styles() ),
    135                 );
     124            if( !empty( $minimum_cart_amount ) && $minimum_cart_amount > 0 ) {
     125                $progress_bar_value = ( $cart_total / $minimum_cart_amount ) * 100;
     126
     127                if ( $minimum_cart_amount > $cart_total ) {
     128                    printf(
     129                        '<div class="tpsm-free-shipping-bar-wrapper" %3$s>
     130                            <span>%1$s</span>
     131                            <progress value="%2$s" max="100"></progress>
     132                        </div>',
     133                        esc_html( $this->shipping_bar_message( $minimum_cart_amount - $cart_total ) ), // Message showing remaining amount
     134                        esc_html( $progress_bar_value ),
     135                        wp_kses_post( $this->shipping_bar_styles() ),
     136                    );
     137                }
    136138            }
    137139        }
  • shipping-manager/trunk/readme.txt

    r3292246 r3292256  
    1 === Shipping Manager: The all-in-one solution for eCommerce shipping automation ===
     1=== Shipping Manager: All in one Shipping Solution ===
    22Contributors: themepaste, habibnote
    33Tags: shipping manager, woocommerce shipping, flexible shipping, table rate shipping
     
    77WC tested up to: 9.8
    88Requires PHP: 7.0
    9 Stable tag: 1.0.2
     9Stable tag: 1.0.3
    1010License: GPLv3 or later
    1111License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    205205== Changelog ==
    206206
    207 = v1.0.1, v1.0.2 - 2025.05.13 = 
     207= v1.0.1 - v1.0.3 - 2025.05.13 = 
    208208* [fix] Fix issues.
    209209
  • shipping-manager/trunk/shipping-manager.php

    r3292246 r3292256  
    44 * Plugin URI:        https://themepaste.com/product/wordpress-plugins/shipping-manager-for-woocommerce
    55 * Description:       Optimize WooCommerce shipping with dynamic rules, box management & real-time rates. Boost profits & customer satisfaction.
    6  * Version:           1.0.2
     6 * Version:           1.0.3
    77 * Requires at least: 5.8
    88 * Requires PHP:      7.0
     
    4141
    4242       define( 'TPSM_PLUGIN_FILE', __FILE__ );
    43        define( 'TPSM_PLUGIN_VERSION', '1.0.2' );
     43       define( 'TPSM_PLUGIN_VERSION', '1.0.3' );
    4444       define( 'TPSM_PLUGIN_DIRNAME', dirname( TPSM_PLUGIN_FILE ) );
    4545       define( 'TPSM_PLUGIN_BASENAME', plugin_basename( TPSM_PLUGIN_FILE ) );
Note: See TracChangeset for help on using the changeset viewer.