From d75366274a8e907ffd78debd354fc2be76c06aef Mon Sep 17 00:00:00 2001 From: iyzoer Date: Wed, 24 May 2017 17:21:52 +0300 Subject: [PATCH] Fix externalId (#30) --- admin/model/extension/retailcrm/order.php | 4 +++- system/cron/.htaccess | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/admin/model/extension/retailcrm/order.php b/admin/model/extension/retailcrm/order.php index 5edd1de..f3d3963 100644 --- a/admin/model/extension/retailcrm/order.php +++ b/admin/model/extension/retailcrm/order.php @@ -148,7 +148,9 @@ class ModelExtensionRetailcrmOrder extends Model { } $order['items'][] = array( - 'productId' => !empty($offerId) ? $product['product_id'].'#'.$offerId : $product['product_id'], + 'offer' => array( + 'externalId' => !empty($offerId) ? $product['product_id'].'#'.$offerId : $product['product_id'] + ), 'productName' => $product['name'], 'initialPrice' => $product['price'], 'quantity' => $product['quantity'], diff --git a/system/cron/.htaccess b/system/cron/.htaccess index 23df3ca..437eb07 100644 --- a/system/cron/.htaccess +++ b/system/cron/.htaccess @@ -1,4 +1,4 @@ -Order Allow, Deny Allow from all +Satisfy any \ No newline at end of file