<?php
function getAllCoursesName()
{
if (!\Components\Customers\Contacts::currentContactId())
{
return null;
}
$arrProperties = array();
$arrProperties['filter'] = array('contact_id', '=', \Components\Customers\Contacts::currentContactId());
$allSales = array();
$allSales = \Components\Commerce\Sales::getAll($arrProperties);
foreach ($allSales as $Sale) {
$saleItemIDs[] = $Sale['sale_id'];
}
return $saleItemIDs;
/*
$arrProperties['filter'] = array('$saleItemIDs['']', '=', \Components\Customers\Contacts::currentContactId());
$productID = ;
*/
}
?>
<?php
function getAllCoursesName()
{
if (!\Components\Customers\Contacts::currentContactId())
{
return null;
}
$arrProperties = array();
$arrProperties['filter'] = array('contact_id', '=', \Components\Customers\Contacts::currentContactId());
$allSales = array();
$allSales = \Components\Commerce\Sales::getAll($arrProperties);
foreach ($allSales as $Sale) {
$saleItemIDs[] = $Sale['sale_id'];
}
return $saleItemIDs;
/*
$arrProperties['filter'] = array('$saleItemIDs['']', '=', \Components\Customers\Contacts::currentContactId());
$productID = ;
*/
}
?>