Skip to content

Commit

Permalink
v2.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
luizbills committed Aug 26, 2024
1 parent bccfa9d commit 66288fc
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 43 deletions.
5 changes: 1 addition & 4 deletions classes/Integration/Autofill_Brazilian_Addresses.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,12 @@ public function fill_package_destination ( $package ) {
', ',
array_filter( [
$address['address_1'],
$address['address_2'],
$address['neighborhood'],
$address['city'],
] )
),
'address_1' => $address['address_1'],
'address_2' => $address['address_2'],
'address_2' => '',
'city' => $address['city'],
'state' => $address['state'],
'country' => 'BR',
Expand All @@ -76,7 +75,6 @@ public function results_title_address ( $address_string, $data ) {
if ( $address ) {
$parts = [
$address['address_1'],
$address['address_2'],
$address['city'],
$address['state']
];
Expand Down Expand Up @@ -132,7 +130,6 @@ private function format_address ( $address ) {
return [
'postcode' => h::sanitize_postcode( h::get( $address['cep'], '' ) ),
'address_1' => h::get( $address['logradouro'], '' ),
'address_2' => str_replace( [ '(', ')' ], '', h::get( $address['complemento'], '' ) ),
'neighborhood' => h::get( $address['bairro'], '' ),
'city' => h::get( $address['localidade'], '' ),
'state' => h::get( $address['uf'], '' ),
Expand Down
73 changes: 37 additions & 36 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion main.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Shipping Simulator for WooCommerce
Plugin URI: https://github.com/luizbills/shipping-simulator-for-woocommerce
Description: Allows your customers to calculate the shipping rates on the product page
Version: 2.3.3
Version: 2.3.4
Requires at least: 4.9
Requires PHP: 7.4
Author: Luiz Bills
Expand All @@ -12,6 +12,7 @@
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: wc-shipping-simulator
Domain Path: /languages
Requires Plugins: woocommerce
Shipping Simulator for WooCommerce is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
9 changes: 7 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
Contributors: luizbills
Donate link: https://luizpb.com/donate/
Tags: woocommerce, shipping simulator, simulador de frete, brazil, brasil, calculadora de frete, shipping calculator, product
Stable tag: 2.3.3
Stable tag: 2.3.4
Requires at least: 4.9
Requires PHP: 7.4
Tested up to: 6.4
Tested up to: 6.6
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -50,6 +50,11 @@ You can ask for help in the [Plugin Forum](https://wordpress.org/support/plugin/

== Changelog ==

= v2.3.4 =

- Tested up to WordPress 6.6
- Autofill don't includes complements (address_2) anymore.

= v2.3.3 =

- Tested up to WordPress 6.4
Expand Down

0 comments on commit 66288fc

Please sign in to comment.