Created
April 9, 2018 09:17
-
-
Save flayder/dc01e073d5e2cd3b5e5d1b1a30bd0f29 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\Bitrix\Main\Loader::IncludeModule('iblock'); | |
\Bitrix\Main\Loader::IncludeModule('sale'); | |
\Bitrix\Main\Loader::IncludeModule('catalog'); | |
$resultObject = \Bitrix\Catalog\ProductTable::getList(array( | |
'select' => array( | |
'SUBSCRIBE', | |
'SUBSCRIBE_ID' => 'Bitrix\Catalog\SubscribeTable:PRODUCT.ID', | |
'USER_CONTACT' => 'Bitrix\Catalog\SubscribeTable:PRODUCT.USER_CONTACT', | |
'CONTACT_TYPE' => 'Bitrix\Catalog\SubscribeTable:PRODUCT.CONTACT_TYPE', | |
), | |
'filter' => array( | |
'CONTACT_TYPE' => 1, | |
'SUBSCRIBE_ID' => 18 | |
//'USER_CONTACT' => '[email protected]' | |
) | |
)); | |
while($productSubscribeData = $resultObject->fetch()) | |
{ | |
print_r($productSubscribeData); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment