Add <xmlId> field in output XML for perfect integration with moysklad.ru

This commit is contained in:
GreenRobot 2017-06-22 21:53:47 +07:00 committed by GitHub
parent 84b851d79b
commit b1e2bfca64

View File

@ -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
*/