Plugin Directory

Changeset 3160801


Ignore:
Timestamp:
10/01/2024 01:22:48 PM (17 months ago)
Author:
phcwordpress
Message:

shipping_designation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • drivefx-woocommerce/trunk/PHCLibrary/invoices.php

    r3147200 r3160801  
    181181                                }
    182182                            }
    183 
     183                           
    184184                            # Shipping                     
    185185                            if (isset($ft->shipping_name)){
     
    187187                                $fi= new stdClass();
    188188
    189                                 if($settings->shippingName != "0") {
     189                                if(!empty($settings->shippingName) && $settings->shippingName != "0") {
    190190                                    $responseSt = $this->utils_services->filterItem_Query($ch, $credentials, 'St', 'ref', $settings->shippingName);
    191191                                    //$this->logs->writeFileLog('ResponseST', $responseSt);
    192192           
    193                                     if(empty($responseSt)) {                                       
     193                                    if(empty($responseSt) || empty($responseSt['result'])) {                                       
    194194                                        //Reset shipping data like on WC
    195195                                        $this->logs->writeFileLog('Warning', "We couldn't find a reference for Shipping (FT), so we'll use WC data");
Note: See TracChangeset for help on using the changeset viewer.