1
0
mirror of synced 2025-01-19 17:31:43 +03:00

product_xml_id and catalog_xml_id fixed in basket when order created in IntaroCRM

This commit is contained in:
Chernyavtsev Ivan 2014-05-29 12:07:40 +04:00
parent d051204e4b
commit ca8c7a2719

View File

@ -815,6 +815,12 @@ class ICrmOrderActions
if (!$p) {
$p = CIBlockElement::GetByID($item['offer']['externalId'])->Fetch();
// select iblock to obtain an CATALOG_XML_ID
$iblock = CIBlock::GetByID($p['IBLOCK_ID'])->Fetch();
$p['CATALOG_XML_ID'] = $iblock['XML_ID'];
// product field XML_ID is called PRODUCT_XML_ID in basket
$p['PRODUCT_XML_ID'] = $p['XML_ID'];
unset($p['XML_ID']);
}
else {
//for basket props updating (in props we save cancel status)