mirror of
https://github.com/retailcrm/opencart-module.git
synced 2025-02-19 16:03:16 +03:00
fix icml
This commit is contained in:
parent
2d79091a9d
commit
364a715d1f
@ -188,13 +188,14 @@ class ModelRetailcrmIcml extends Model
|
|||||||
}
|
}
|
||||||
$offerId = implode('_', $offerId);
|
$offerId = implode('_', $offerId);
|
||||||
$e = $this->eOffers->appendChild($this->dd->createElement('offer'));
|
$e = $this->eOffers->appendChild($this->dd->createElement('offer'));
|
||||||
$e->setAttribute('productId', $product['product_id']);
|
|
||||||
if(!empty($offerId)) {
|
if(!empty($offerId)) {
|
||||||
$e->setAttribute('id', $product['product_id'].'#'.$offerId);
|
$e->setAttribute('id', $product['product_id'].'#'.$offerId);
|
||||||
|
$e->setAttribute('productId', $product['product_id']);
|
||||||
$e->setAttribute('quantity', $optionsValues['qty']);
|
$e->setAttribute('quantity', $optionsValues['qty']);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$e->setAttribute('id', $product['product_id']);
|
$e->setAttribute('id', $product['product_id']);
|
||||||
|
$e->setAttribute('productId', $product['product_id']);
|
||||||
$e->setAttribute('quantity', $product['quantity']);
|
$e->setAttribute('quantity', $product['quantity']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user