mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-24 22:26:06 +03:00
Bug fix
This commit is contained in:
parent
9fb324188b
commit
bceb2069ac
@ -1,3 +1,6 @@
|
||||
## v.3.1.5
|
||||
* Исправление ошибок
|
||||
|
||||
## v.3.1.4
|
||||
* Исправлена некорректная склейка типов доставки
|
||||
|
||||
|
@ -15,9 +15,11 @@ class ControllerApiRetailcrm extends Controller
|
||||
$moduleTitle = $this->retailcrm->getModuleTitle();
|
||||
$setting = $this->model_setting_setting->getSetting($moduleTitle);
|
||||
|
||||
$response = array();
|
||||
|
||||
if (isset($setting[$moduleTitle . '_country']) && $setting[$moduleTitle . '_country']) {
|
||||
foreach ($setting[$moduleTitle . '_country'] as $country) {
|
||||
$response = $this->mergeDeliveryTypes($country);
|
||||
$response = $this->mergeDeliveryTypes($country, $response);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -130,8 +132,7 @@ class ControllerApiRetailcrm extends Controller
|
||||
return $deliveryTypes;
|
||||
}
|
||||
|
||||
private function mergeDeliveryTypes($country) {
|
||||
$result = array();
|
||||
private function mergeDeliveryTypes($country, $result) {
|
||||
$delivery_types = $this->getDeliveryTypesByZones($country);
|
||||
|
||||
foreach ($delivery_types as $shipping_module => $shipping_type) {
|
||||
|
Loading…
Reference in New Issue
Block a user