Plugin Directory

Changeset 3361931


Ignore:
Timestamp:
09/15/2025 04:20:33 PM (6 months ago)
Author:
aarsiv
Message:

bug fix

Location:
a2z-ups-shipping
Files:
31 added
3 edited

Legend:

Unmodified
Added
Removed
  • a2z-ups-shipping/trunk/a2zups_basic.php

    r3344829 r3361931  
    55 * Plugin URI: https://a2zplugins.com/product/ups-express-shipping-with-label-printing/
    66 * Description: Realtime Shipping Rates, Shipping label, commercial invoice automation included.
    7  * Version: 4.3.8
     7 * Version: 4.3.9
    88 * Author: Shipi
    99 * Author URI: https://myshipi.com/
  • a2z-ups-shipping/trunk/controllors/hit_ups_auto_init.php

    r3310159 r3361931  
    782782                foreach ($final_price as $key => $value) {
    783783                   
    784                     $rate_cost = $value['price'];
     784                    $rate_cost = floatval($value['price']);
    785785                    $rate_code = $value['code'];
    786786                    $multi_ven = $value['multi_v'];
    787787
    788788                    if (!empty($general_settings['hit_ups_auto_carrier_adj_percentage'][$rate_code])) {
    789                             $rate_cost += $rate_cost * ($general_settings['hit_ups_auto_carrier_adj_percentage'][$rate_code] / 100);
     789                            $rate_cost += $rate_cost * (floatval($general_settings['hit_ups_auto_carrier_adj_percentage'][$rate_code]) / 100);
    790790                        }
    791791                    if (!empty($general_settings['hit_ups_auto_carrier_adj'][$rate_code])) {
    792                             $rate_cost += $general_settings['hit_ups_auto_carrier_adj'][$rate_code];
     792                            $rate_cost += floatval($general_settings['hit_ups_auto_carrier_adj'][$rate_code]);
    793793                        }
    794794
     
    914914                    $packed_products = array();
    915915                    if(($package_count  ==  1) && isset($order_total)){
    916                         $insured_value  =  (isset($product_data['product_price']) ? $product_data['product_price'] : $product_data['price']) * (isset($values['product_quantity']) ? $values['product_quantity'] : $values['quantity']);
     916                        $price = isset($product_data['product_price']) ? $product_data['product_price'] : $product_data['price'];
     917                        $qty   = isset($values['product_quantity']) ? $values['product_quantity'] : $values['quantity'];
     918                        $insured_value = floatval($price) * intval($qty);
    917919                    }else{
    918920                        $insured_value  =   0;
  • a2z-ups-shipping/trunk/readme.txt

    r3344829 r3361931  
    66Tested up to: 6.8
    77Requires PHP: 5.6
    8 Stable tag: 4.3.8
     8Stable tag: 4.3.9
    99License: GPLv3 or later License
    1010URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    9797
    9898== Changelog ==
     99= 4.3.9 =
     100    > Fixed "Unsupported operand types" error.
    99101
    100102= 4.3.7, 4.3.8 =
Note: See TracChangeset for help on using the changeset viewer.