Skip to content

Commit

Permalink
Merge pull request PrestaShop#7482 from aleeks/4415
Browse files Browse the repository at this point in the history
Use default state for tax purposes
  • Loading branch information
antoin-m authored Feb 8, 2017
2 parents 471f9c4 + 904dfb5 commit ef36c8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,9 @@ public static function initialize($id_address = null, $with_geoloc = false)
} else {
// set the default address
$address = new Address();
$address->id_country = (int)$context->country->id;
$address->id_state = 0;
$address->postcode = 0;
$address->id_country = Configuration::get('PS_SHOP_COUNTRY_ID') ? Configuration::get('PS_SHOP_COUNTRY_ID') : Configuration::get('PS_COUNTRY_DEFAULT');
$address->id_state = Configuration::get('PS_SHOP_STATE_ID');
$address->postcode = Configuration::get('PS_SHOP_CODE');
}
Cache::store($cache_id, $address);

Expand Down

0 comments on commit ef36c8a

Please sign in to comment.