<?php
function getAllContactSales()
{
if (!\Components\Customers\Contacts::currentContactId())
{
return null;
}
$arrProperties = array();
$arrProperties['filter'] = array('contact_id', '=', \Components\Customers\Contacts::currentContactId());
return \Components\Commerce\Sales::getAll($arrProperties);
}
function getcourses()
{
$arrProperties = array();
$arrProperties['filter'] = array('product_id', '=', '5');
return \Components\AF\Courses::getAll($arrProperties);
}
?>
<?php
function getAllContactSales()
{
if (!\Components\Customers\Contacts::currentContactId())
{
return null;
}
$arrProperties = array();
$arrProperties['filter'] = array('contact_id', '=', \Components\Customers\Contacts::currentContactId());
return \Components\Commerce\Sales::getAll($arrProperties);
}
function getcourses()
{
$arrProperties = array();
$arrProperties['filter'] = array('product_id', '=', '5');
return \Components\AF\Courses::getAll($arrProperties);
}
?>