set('date_to',$time_end); $Session->set('date_from',$time_start); $link = ''; $selected = array(); $products = new Products(); $current_lang = $L->getCurrentLanguage(); $L = Core_Language::getInstance(); $goods = new Products(); $topSalesArray = $goods->getSalesStats($time_start,$time_end); $fields['id'] = $topSalesArray['ids']; $params['limit']=true; $params['offset'] = 0; $params['length'] =500; $params['order'] ='id DESC'; $params['admin'] = 1; $topSales = $goods -> getList($fields,$params); $items=array(); foreach($topSales['data'] as $item) { $items[$item['id']]=$item; } ?>

Str('sales_statistics')?>

Str('statistics_for_dates')?>
Str('name')?>
Str('purchases')?>
Str('amount')?>
$purchases) { $item = $items[$item_id]; $title= htmlspecialchars($L->StrT('goods','title', $item['id'], $item['title'])); ?>
EUR
Str('total')?>
EUR