Plugin Directory

Changeset 2676879


Ignore:
Timestamp:
02/11/2022 07:07:22 AM (4 years ago)
Author:
ipol
Message:

1.0.11

Location:
via-delivery/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • via-delivery/trunk/includes/shipping.php

    r2556800 r2676879  
    298298        $state = strval($package['destination']['state']);
    299299        $city = strval($package['destination']['city']);
     300
     301        $WC_Countries = new WC_Countries();
     302        $states = $WC_Countries->get_states( $country );
     303
     304        if (array_key_exists($state, $states)) {
     305            $state = $states[$state];
     306        }
    300307       
    301308        if ($geocode && !empty($country) && !empty($city)) {
  • via-delivery/trunk/via-delivery.php

    r2645649 r2676879  
    44 * Plugin URI: https://via.delivery
    55 * Description: Deliver to your customer at a fraction of the cost of traditional carriers.
    6  * Version: 1.0.10
     6 * Version: 1.0.11
    77 * Author: Ipol
    88 * Author URI: https://ipol.ru/
Note: See TracChangeset for help on using the changeset viewer.