From b1e2bfca64a908ed2846e5b0a0e269db24821533 Mon Sep 17 00:00:00 2001 From: GreenRobot Date: Thu, 22 Jun 2017 21:53:47 +0700 Subject: [PATCH] Add field in output XML for perfect integration with moysklad.ru --- admin/model/extension/retailcrm/icml.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/admin/model/extension/retailcrm/icml.php b/admin/model/extension/retailcrm/icml.php index 5535e3a..fc4b823 100644 --- a/admin/model/extension/retailcrm/icml.php +++ b/admin/model/extension/retailcrm/icml.php @@ -198,6 +198,11 @@ class ModelExtensionRetailcrmIcml extends Model $e->setAttribute('productId', $product['product_id']); $e->setAttribute('quantity', $product['quantity']); } + /** + * xmlID = product_id + */ + $e->appendChild($this->dd->createElement('xmlId')) + ->appendChild($this->dd->createTextNode($product['product_id'])); /** * Offer activity */