Created
March 25, 2021 09:54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/addons/geo_maps/Tygh/Addons/GeoMaps/ShippingEstimator.php b/app/addons/geo_maps/Tygh/Addons/GeoMaps/ShippingEstimator.php | |
index 08d20de550..f321886867 100644 | |
--- a/app/addons/geo_maps/Tygh/Addons/GeoMaps/ShippingEstimator.php | |
+++ b/app/addons/geo_maps/Tygh/Addons/GeoMaps/ShippingEstimator.php | |
@@ -211,14 +211,12 @@ class ShippingEstimator | |
$shippings_summary = (new Collection($shipping_methods)) | |
->map(function ($shipping) use (&$shipping_methods) { | |
$shipping_id = $shipping['shipping_id']; | |
- $rate = $shipping_methods[$shipping_id]['rate'] = | |
- !empty($shipping['min_cost']) ? $shipping['min_cost'] : $shipping['rate']; | |
$type = $shipping_methods[$shipping_id]['type'] = | |
self::isPickupShipping($shipping) ? ShippingGroupTypes::PICKUP : ShippingGroupTypes::DELIVERY; | |
return [ | |
- 'rate' => $rate, | |
+ 'rate' => $shipping['rate'], | |
'type' => $type, | |
'delivery_time' => !empty($shipping['service_delivery_time']) ? $shipping['service_delivery_time'] : $shipping['delivery_time'], | |
'number_of_pickup_points' => $shipping['number_of_pickup_points'], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment