Заметил баг, при заказе если цена товара меньше чем указано в "Бесплатная доставка от" (у меня 2000грн), то заказ зависает.... если оставить пустым "Бесплатная доставка от" , то заказ так же зависает! что делать? https://imperiazolota.ua
Только что нашел в каком месте проблема.... /www/catalog/model/extension/shipping/novaposhta.php
if ($method['cost'] && (!$method['free_shipping'] || $total < $method['free_shipping'])) {
if ($method['api_calculation'] && $recipient_city_ref && $departure['weight']) {
$properties_cost = array (
'Sender' => $this->settings['sender'],
'CitySender' => $this->settings['sender_city'],
'CityRecipient' => $recipient_city_ref,
'ServiceType' => $this->settings['sender_address_type'] . ucfirst($code),
'CargoType' => $departure_type,
'Weight' => $departure['weight'],
'VolumeWeight' => $volume_weight,
'SeatsAmount' => $seats,
'Cost' => $total,
'DateTime' => date('d.m.Y')
);
if (!empty($pack_type)) {
$properties_cost['PackCalculate'] = array(
'PackRef' => $pack_type,
'PackCount' => $seats
);
}
$cost = $this->novaposhta->getDocumentPrice($properties_cost);
}
if ($method['tariff_calculation'] && !$cost) {
$cost = $this->tariffCalculation($this->settings['sender_address_type'] . ucfirst($code), lcfirst($departure_type), $address['zone_id'], $recipient_city_ref, $departure['weight'], $volume_weight, $total);
}
// Currency correcting
$currency_value = $this->currency->getValue('UAH');
if ($cost && $currency_value != 1) {
$cost /= $currency_value;
}
}
подскажи как исправить...