Plugin Directory

Changeset 3439193


Ignore:
Timestamp:
01/14/2026 06:46:37 AM (5 weeks ago)
Author:
fastcourieraustralia
Message:

5.2.1

Location:
fast-courier-shipping-freight
Files:
356 added
7 edited

Legend:

Unmodified
Added
Removed
  • fast-courier-shipping-freight/trunk/configs.php

    r3389353 r3439193  
    1616$GLOBALS['api'] = "https://portal-staging.fastcourier.com.au/api/wp/";
    1717$GLOBALS['test_key'] = $options_prefix . 'test_mode';
    18 $GLOBALS['version'] = '5.2.0';
     18$GLOBALS['version'] = '5.2.1';
    1919
    2020$GLOBALS['options_prefix'] = $options_prefix;
  • fast-courier-shipping-freight/trunk/functions.php

    r3389353 r3439193  
    12241224                            headers: {
    12251225                                'Authorization': `Bearer <?php echo $token ?>`,
    1226                                 'version': '5.2.0',
     1226                                'version': '5.2.1',
    12271227                            },
    12281228                            data: {
  • fast-courier-shipping-freight/trunk/readme.txt

    r3389353 r3439193  
    44Requires at least: 5.0
    55Tested up to: 6.8
    6 Stable tag: 5.2.0
     6Stable tag: 5.2.1
    77Requires PHP: 7.4
    88License: GPLv2
     
    310310= 5.2.0 =
    311311* Performance & Bug fixes
     312
     313= 5.2.1 =
     314* Performance & Bug fixes
  • fast-courier-shipping-freight/trunk/settings.php

    r3389353 r3439193  
    1717 * Plugin URI:        https://fastcourier.com.au
    1818 * Description:       Fast Courier is an Australian Courier & Freight shipping platform. Connect your WooCommerce Store with a network of Courier & Freight Providers. See more about Fast Courier Services here: <a href="https://fastcourier.com.au" target="_blank">https://fastcourier.com.au</a>
    19  * Version:           5.2.0
     19 * Version:           5.2.1
    2020 * Author:            Fast Courier Australia
    2121 * License:           GPLv2
  • fast-courier-shipping-freight/trunk/views/class-update-quotes.php

    r3389353 r3439193  
    5151
    5252        /*
    53         * $seprated_items will contains an array of products based on there locations
    54         * array key will be the primary key (id) of location and value will be WC_Product.
    55         */
     53         * $seprated_items will contains an array of products based on there locations
     54         * array key will be the primary key (id) of location and value will be WC_Product.
     55         */
    5656        $seprated_items = [];
    5757
     
    471471                $address1 = ($address['shipping_address_1'] != '') ? $address['shipping_address_1'] : null;
    472472                $address2 = $address['shipping_address_2'] ?? null;
     473                if (!$dCity || $dCity == '') {
     474                    $parts = explode(',', $address['fc_shipping_suburb']);
     475                    $city = trim($parts[0]);
     476                    $dCity = $city;
     477                }
     478                if (!$state || $state == '') {
     479                    if (preg_match('/\(([^)]+)\)/', $address['fc_shipping_suburb'], $m)) {
     480                        $state = trim($m[1]);
     481                    }
     482                }
     483                if ((!$postcode || $postcode == '') && $address['fc_shipping_suburb'] != '') {
     484                    if (preg_match('/\b(\d{4})\b/', $address['fc_shipping_suburb'], $m)) {
     485                        $postcode = $m[1];
     486                    }
     487                }
    473488            } else {
    474489                $postcode = $address['billing_postcode'];
     
    481496                $address1 = ($address['billing_address_1'] != '') ? $address['billing_address_1'] : null;
    482497                $address2 = $address['billing_address_2'] ?? null;
     498
     499                if ((!$dCity || $dCity == '') && $address['fc_billing_suburb'] != '') {
     500                    $parts = explode(',', $address['fc_billing_suburb']);
     501                    $city = trim($parts[0]);
     502                    $dCity = $city;
     503                }
     504                if ((!$state || $state == '') && $address['fc_billing_suburb'] != '') {
     505                    if (preg_match('/\(([^)]+)\)/', $address['fc_billing_suburb'], $m)) {
     506                        $state = trim($m[1]);
     507                    }
     508                }
     509                if ((!$postcode || $postcode == '') && $address['fc_billing_suburb'] != '') {
     510                    if (preg_match('/\b(\d{4})\b/', $address['fc_billing_suburb'], $m)) {
     511                        $postcode = $m[1];
     512                    }
     513                }
    483514            }
    484515            $email = $address['billing_email'];
  • fast-courier-shipping-freight/trunk/views/views/location-edit.php

    r3389353 r3439193  
    242242                headers: {
    243243                    'Authorization': `Bearer <?php echo $token ?>`,
    244                     'version': '5.2.0',
     244                    'version': '5.2.1',
    245245                },
    246246                data: (params) => {
  • fast-courier-shipping-freight/trunk/views/views/merchant.php

    r3389353 r3439193  
    397397            headers: {
    398398                'Authorization': `Bearer <?php echo $token ?>`,
    399                 'version': '5.2.0',
     399                'version': '5.2.1',
    400400            },
    401401            data: {
Note: See TracChangeset for help on using the changeset viewer.