Plugin Directory

Changeset 3336139


Ignore:
Timestamp:
07/29/2025 05:04:38 PM (8 months ago)
Author:
aarsiv
Message:

Total tax added as other charges

Location:
a2z-fedex-shipping
Files:
63 added
2 edited

Legend:

Unmodified
Added
Removed
  • a2z-fedex-shipping/trunk/a2zfedex_basic.php

    r3336109 r3336139  
    44 * Plugin URI: https://myshipi.com/
    55 * Description: Realtime Shipping Rates, shipping labels.
    6  * Version: 5.0.6
     6 * Version: 5.0.7
    77 * Author: Shipi
    88 * Author URI: https://myshipi.com/
     
    21212121                                "inv_letterhead" => isset($general_settings['hitshippo_fedex_inv_letterhead']) ? $general_settings['hitshippo_fedex_inv_letterhead'] : '',
    21222122                                "ship_price" => $shipping_charge,
    2123                                 "other_charges" => apply_filters("shipi_fedex_other_charges", 0, $order_data),
     2123                                "other_charges" => apply_filters("shipi_fedex_other_charges", (isset($order_data["total_tax"]) && $order_data["total_tax"] > 0 ? $order_data["total_tax"] : 0), $order_data),
    21242124                                "order_total" => isset($order_data['total']) ? $order_data['total'] : 0,
    21252125                                "custom" => apply_filters("shipi_fedex_custom_values", array(), $_POST),
     
    23952395                            "return_type_desc" => isset($general_settings['hitshippo_fedex_return_type_desc']) ? $general_settings['hitshippo_fedex_return_type_desc'] : '',
    23962396                            "ship_price" => $shipping_charge,
    2397                             "other_charges" => apply_filters("shipi_fedex_other_charges", 0, $order_data),
     2397                            "other_charges" => apply_filters("shipi_fedex_other_charges", (isset($order_data["total_tax"]) && $order_data["total_tax"] > 0 ? $order_data["total_tax"] : 0), $order_data),
    23982398                            "order_total" => isset($order_data['total']) ? $order_data['total'] : 0,
    23992399                            "order_total_tax" => isset($order_data['total_tax']) ? $order_data['total_tax'] : 0,
     
    30313031                            "inv_letterhead" => isset($general_settings['hitshippo_fedex_inv_letterhead']) ? $general_settings['hitshippo_fedex_inv_letterhead'] : '',
    30323032                            "ship_price" => $shipping_charge,
    3033                             "other_charges" => apply_filters("shipi_fedex_other_charges", 0, $order_data),
     3033                            "other_charges" => apply_filters("shipi_fedex_other_charges", (isset($order_data["total_tax"]) && $order_data["total_tax"] > 0 ? $order_data["total_tax"] : 0), $order_data),
    30343034                            "handling_price" => ($handling_charge > 0 ? ((-1) * $handling_charge) : 0),
    30353035                            "ship_date" => isset($_POST["ship_date"]) ? $_POST["ship_date"] : "",
  • a2z-fedex-shipping/trunk/readme.txt

    r3336109 r3336139  
    55Tested up to: 6.8
    66Requires PHP: 5.6
    7 Stable tag: 5.0.6
     7Stable tag: 5.0.7
    88License: GPLv3 or later License
    99URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    159159
    160160== Changelog ==
     161= 5.0.7 =
     162    > [New] Other charged handled from tax
    161163= 5.0.6 =
    162164    > [New] Added new filter.
Note: See TracChangeset for help on using the changeset viewer.