Plugin Directory

Changeset 3416572


Ignore:
Timestamp:
12/10/2025 04:07:11 PM (4 months ago)
Author:
aarsiv
Message:

Bug fix and new wordpress version tested

Location:
a2z-dhl-express-shipping
Files:
1617 added
2 edited

Legend:

Unmodified
Added
Removed
  • a2z-dhl-express-shipping/trunk/a2zdhlexpress_basic.php

    r3408969 r3416572  
    44 * Plugin URI: https://myshipi.com/
    55 * Description: Realtime Shipping Rates, Shipping label, Pickup, commercial invoice automation included.
    6  * Version: 5.6.0
     6 * Version: 5.6.1
    77 * Author: Shipi
    88 * Author URI: https://myshipi.com/
     
    34683468                        foreach ( $items as $item ) {
    34693469                            $product_data = $item->get_data();
     3470
     3471                            $refunded_qty = $order->get_qty_refunded_for_item( $item->get_id() );
     3472                            $remaining_qty = $product_data['quantity'] - abs($refunded_qty);
     3473
     3474                            if ($remaining_qty <= 0) {
     3475                                continue;
     3476                            }
     3477
    34703478                            $product = array();
    34713479                            $product['product_name'] = str_replace('"', '', $product_data['name']);
    3472                             $product['product_quantity'] = $product_data['quantity'];
     3480                            $product['product_quantity'] = $remaining_qty;
    34733481                            $product['product_id'] = $product_data['product_id'];
    34743482
     
    35483556
    35493557                            $product['sku'] =  $getproduct->get_sku();
    3550                             $product['price'] = (isset($product_data['total']) && isset($product_data['quantity'])) ? number_format(($product_data['total'] / $product_data['quantity']), 2) : 0;
     3558                            $refunded_total = $order->get_total_refunded_for_item( $item->get_id() );
     3559                            $remaining_total = $product_data['total'] - abs($refunded_total);
     3560                            $product['price'] = (isset($remaining_total) && $remaining_total > 0) ? round($remaining_total/$remaining_qty, 2): $getproduct->get_price();
    35513561                           
    35523562
  • a2z-dhl-express-shipping/trunk/readme.txt

    r3408969 r3416572  
    33Tags: dhl express, dhl, wooCommerce shipping, dhl plugin, shipping rates, shipping labels, return label, hpos
    44Requires at least: 4.0.1
    5 Tested up to: 6.8
     5Tested up to: 6.9
    66Requires PHP: 5.6
    7 Stable tag: 5.6.0
     7Stable tag: 5.6.1
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    9292
    9393== Changelog ==
     94= 5.6.1 =
     95* Bug fixes
    9496= 5.6.0 =
    9597* Bug fixes
Note: See TracChangeset for help on using the changeset viewer.