mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-22 21:26:08 +03:00
fix icml
This commit is contained in:
parent
1484071122
commit
647d5e8427
@ -188,12 +188,14 @@ class ModelExtensionRetailcrmIcml extends Model
|
|||||||
}
|
}
|
||||||
$offerId = implode('_', $offerId);
|
$offerId = implode('_', $offerId);
|
||||||
$e = $this->eOffers->appendChild($this->dd->createElement('offer'));
|
$e = $this->eOffers->appendChild($this->dd->createElement('offer'));
|
||||||
if(!empty($offerId))
|
if(!empty($offerId)) {
|
||||||
$e->setAttribute('id', $product['product_id'].'#'.$offerId);
|
$e->setAttribute('id', $product['product_id'].'#'.$offerId);
|
||||||
else
|
$e->setAttribute('quantity', $optionsValues['qty']);
|
||||||
|
}
|
||||||
|
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']);
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* Offer activity
|
* Offer activity
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user