if (isExtensionActive('user')) {
// Get the points and add them to the existing
$filterData['points'] += countSumTotalData($filterData['userid'], 'user_points', 'order_points');
if (isExtensionActive('user')) {
// Get the points and add them to the existing
$filterData['points'] += countSumTotalData($filterData['userid'], 'user_points', 'order_points');