Skip to content

Commit

Permalink
Merge master into v4
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Oct 27, 2024
1 parent ebadd73 commit f514c23
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/Classes/OrderManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,10 @@ public function validateDeliveryAddress(array $address)
$address['country'] = app('country')->getCountryNameById($address['country_id']);
}

$addressString = implode(' ', array_only($address, [
$collection = app('geocoder')->geocode(implode(' ', array_only($address, [
'address_1', 'address_2', 'city', 'state', 'postcode', 'country',
]));
])));

if (!$this->location->requiresUserPosition()) {
return;
}

$collection = app('geocoder')->geocode($addressString);
if (!$collection || $collection->isEmpty()) {
throw new ApplicationException(lang('igniter.local::default.alert_invalid_search_query'));
}
Expand Down

0 comments on commit f514c23

Please sign in to comment.