Merge pull request #225 from DmitreyZl/master

misprint_oc_delivery
This commit is contained in:
Alex Lushpai 2021-04-14 13:54:57 +03:00 committed by GitHub
commit 072b3a95b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,7 +209,7 @@ class Order {
$shipping = explode('.', $data['shipping_code']);
$shippingModule = $shipping[0];
if (isset($this->ocDelivery[$shippingModule][$data['shipping_code']]['title'])) {
if (isset($this->oc_delivery[$shippingModule][$data['shipping_code']]['title'])) {
$data['shipping_method'] = $this->oc_delivery[$shippingModule][$data['shipping_code']]['title'];
} else {
$data['shipping_method'] = $this->oc_delivery[$shippingModule]['title'];