mirror of
https://github.com/retailcrm/opencart-module.git
synced 2025-04-01 20:36:14 +03:00
fix offer externalId in admin model
This commit is contained in:
parent
ac98d0fc0e
commit
07a04ecfca
1 changed files with 3 additions and 1 deletions
|
@ -148,7 +148,9 @@ class ModelExtensionRetailcrmOrder extends Model {
|
||||||
}
|
}
|
||||||
|
|
||||||
$order['items'][] = array(
|
$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'],
|
'productName' => $product['name'],
|
||||||
'initialPrice' => $product['price'],
|
'initialPrice' => $product['price'],
|
||||||
'quantity' => $product['quantity'],
|
'quantity' => $product['quantity'],
|
||||||
|
|
Loading…
Add table
Reference in a new issue