Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save flayder/dc01e073d5e2cd3b5e5d1b1a30bd0f29 to your computer and use it in GitHub Desktop.
Save flayder/dc01e073d5e2cd3b5e5d1b1a30bd0f29 to your computer and use it in GitHub Desktop.
\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