Plugin Directory

Changeset 2913806


Ignore:
Timestamp:
05/17/2023 04:52:26 PM (3 years ago)
Author:
eshipper
Message:

2.14.3 - Fixed warning message on shipping rate list due to incorrect shipping address.

Location:
eshipper-commerce
Files:
3 edited
21 copied

Legend:

Unmodified
Added
Removed
  • eshipper-commerce/tags/2.14.3/plugin/eshipperCalls.php

    r2912671 r2913806  
    88    public function fetchRateList($requestData)
    99    {
     10        // TODO: send failure standard response
     11//        $rateResponse = ['statusCode' => 412, "msg" => 'Something went wrong while fetching shipping options. There might be issues with your order. Please contact support!'];
    1012        $eshipperUser = $this->getLoggedInUser();
    1113        if (!empty($eshipperUser)) {
     
    2426                $response = $curlHandler->sendCurlRequest($requestData, $uri, $method, $headerArray);
    2527
    26                 $httpResponseCode = $response['httpResponseCode'];
    27 
    28                 if ($httpResponseCode == 200) {
    29                     return $response;
    30                 } else {
    31                     $responseArray = ['statusCode' => $httpResponseCode, "msg" => $response['response']->errors];
    32 
    33                     return $responseArray;
     28                if (!empty($response['response']) && !empty($response['httpResponseCode'])) {
     29                    $httpResponseCode = $response['httpResponseCode'];
     30
     31                    if ($httpResponseCode == 200) {
     32                        return $response;
     33                    } elseif (isset($response['response']->errors)) {
     34                        return ['statusCode' => $httpResponseCode, "msg" => $response['response']->errors];
     35                    } else {
     36                        return false;
     37                    }
    3438                }
    3539            }
  • eshipper-commerce/tags/2.14.3/readme.txt

    r2912672 r2913806  
    55Tested up to: 6.1
    66Requires PHP: 7.1
    7 Stable tag: 2.14.2
     7Stable tag: 2.14.3
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    2828
    2929== Changelog ==
     30= 2.14.3 =
     31* * Fixed warning message on shipping rate list due to incorrect shipping address.
    3032= 2.14.2 =
    3133* Minor Fix for warning message - Undefined property: stdClass::$errors in eshipperCalls.php on line 27
     
    3638
    3739== Upgrade Notice ==
     40= 2.14.3 =
     41* Fixed warning message on shipping rate list due to incorrect shipping address.
    3842= 2.14.2 =
    3943* Minor Fixes for Warning Messages.
  • eshipper-commerce/tags/2.14.3/woocommerce-eshipper.php

    r2912671 r2913806  
    44    Plugin URI: https://ww2.eshipper.com/ecommerce/
    55    Description: Extends WooCommerce with Shipping Rates from eShipper
    6     Version: 2.14.2
     6    Version: 2.14.3
    77    Author: eShipper
    88    Author URI: https://ww2.eshipper.com/
  • eshipper-commerce/trunk/plugin/eshipperCalls.php

    r2912671 r2913806  
    88    public function fetchRateList($requestData)
    99    {
     10        // TODO: send failure standard response
     11//        $rateResponse = ['statusCode' => 412, "msg" => 'Something went wrong while fetching shipping options. There might be issues with your order. Please contact support!'];
    1012        $eshipperUser = $this->getLoggedInUser();
    1113        if (!empty($eshipperUser)) {
     
    2426                $response = $curlHandler->sendCurlRequest($requestData, $uri, $method, $headerArray);
    2527
    26                 $httpResponseCode = $response['httpResponseCode'];
    27 
    28                 if ($httpResponseCode == 200) {
    29                     return $response;
    30                 } else {
    31                     $responseArray = ['statusCode' => $httpResponseCode, "msg" => $response['response']->errors];
    32 
    33                     return $responseArray;
     28                if (!empty($response['response']) && !empty($response['httpResponseCode'])) {
     29                    $httpResponseCode = $response['httpResponseCode'];
     30
     31                    if ($httpResponseCode == 200) {
     32                        return $response;
     33                    } elseif (isset($response['response']->errors)) {
     34                        return ['statusCode' => $httpResponseCode, "msg" => $response['response']->errors];
     35                    } else {
     36                        return false;
     37                    }
    3438                }
    3539            }
  • eshipper-commerce/trunk/readme.txt

    r2912672 r2913806  
    55Tested up to: 6.1
    66Requires PHP: 7.1
    7 Stable tag: 2.14.2
     7Stable tag: 2.14.3
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    2828
    2929== Changelog ==
     30= 2.14.3 =
     31* Fixed warning message on shipping rate list due to incorrect shipping address.
    3032= 2.14.2 =
    3133* Minor Fix for warning message - Undefined property: stdClass::$errors in eshipperCalls.php on line 27
     
    3638
    3739== Upgrade Notice ==
     40= 2.14.3 =
     41* Fixed warning message on shipping rate list due to incorrect shipping address.
    3842= 2.14.2 =
    3943* Minor Fixes for Warning Messages.
  • eshipper-commerce/trunk/woocommerce-eshipper.php

    r2912671 r2913806  
    44    Plugin URI: https://ww2.eshipper.com/ecommerce/
    55    Description: Extends WooCommerce with Shipping Rates from eShipper
    6     Version: 2.14.2
     6    Version: 2.14.3
    77    Author: eShipper
    88    Author URI: https://ww2.eshipper.com/
Note: See TracChangeset for help on using the changeset viewer.