function __construct() { $this->name = 'statsbestcustomers'; $this->tab = 'Stats'; $this->version = 1.0; $this->_defaultSortColumn = 'total'; $this->_emptyMessage = $this->l('Empty recordset returned'); $this->_pagingMessage = $this->l('Displaying') . ' {0} - {1} ' . $this->l('of') . ' {2}'; $this->_columns = array(array('id' => 'lastname', 'header' => $this->l('Lastname'), 'dataIndex' => 'lastname', 'width' => 50), array('id' => 'firstname', 'header' => $this->l('Firstname'), 'dataIndex' => 'firstname', 'width' => 50), array('id' => 'email', 'header' => $this->l('Email'), 'dataIndex' => 'email', 'width' => 120), array('id' => 'totalVisits', 'header' => $this->l('Visits'), 'dataIndex' => 'totalVisits', 'width' => 80, 'align' => 'right'), array('id' => 'totalPageViewed', 'header' => $this->l('Page viewed'), 'dataIndex' => 'totalPageViewed', 'width' => 80, 'align' => 'right'), array('id' => 'totalMoneySpent', 'header' => $this->l('Money spent'), 'dataIndex' => 'totalMoneySpent', 'width' => 80, 'align' => 'right')); parent::__construct(); $this->displayName = $this->l('Best customers'); $this->description = $this->l('A list of the best customers'); }
function __construct() { $this->name = 'statsbestvouchers'; $this->tab = 'Stats'; $this->version = 1.0; $this->_defaultSortColumn = 'ca'; $this->_emptyMessage = $this->l('Empty recordset returned'); $this->_pagingMessage = $this->l('Displaying') . ' {0} - {1} ' . $this->l('of') . ' {2}'; $this->_columns = array(array('id' => 'name', 'header' => $this->l('Name'), 'dataIndex' => 'name', 'align' => 'left', 'width' => 300), array('id' => 'ca', 'header' => $this->l('Sales'), 'dataIndex' => 'ca', 'width' => 30, 'align' => 'right'), array('id' => 'total', 'header' => $this->l('Total used'), 'dataIndex' => 'total', 'width' => 30, 'align' => 'right')); parent::__construct(); $this->displayName = $this->l('Best vouchers'); $this->description = $this->l('A list of the best vouchers'); }
function __construct() { $this->name = 'statsbestproducts'; $this->tab = 'Stats'; $this->version = 1.0; $this->_defaultSortColumn = 'totalPriceSold'; $this->_emptyMessage = $this->l('Empty recordset returned'); $this->_pagingMessage = $this->l('Displaying') . ' {0} - {1} ' . $this->l('of') . ' {2}'; $this->_columns = array(array('id' => 'reference', 'header' => $this->l('Ref.'), 'dataIndex' => 'reference', 'align' => 'left', 'width' => 50), array('id' => 'name', 'header' => $this->l('Name'), 'dataIndex' => 'name', 'align' => 'left', 'width' => 100), array('id' => 'totalQuantitySold', 'header' => $this->l('Qty sold'), 'dataIndex' => 'totalQuantitySold', 'width' => 50, 'align' => 'right'), array('id' => 'avgPriceSold', 'header' => $this->l('Price sold'), 'dataIndex' => 'avgPriceSold', 'width' => 50, 'align' => 'right'), array('id' => 'totalPriceSold', 'header' => $this->l('Sales'), 'dataIndex' => 'totalPriceSold', 'width' => 50, 'align' => 'right'), array('id' => 'averageQuantitySold', 'header' => $this->l('Qty sold / day'), 'dataIndex' => 'averageQuantitySold', 'width' => 60, 'align' => 'right'), array('id' => 'totalPageViewed', 'header' => $this->l('Page viewed'), 'dataIndex' => 'totalPageViewed', 'width' => 60, 'align' => 'right'), array('id' => 'quantity', 'header' => $this->l('Stock'), 'dataIndex' => 'quantity', 'width' => 50, 'align' => 'right')); parent::__construct(); $this->displayName = $this->l('Best products'); $this->description = $this->l('A list of the best products'); }
function __construct() { $this->name = 'statsbestcategories'; $this->tab = 'Stats'; $this->version = 1.0; $this->_defaultSortColumn = 'totalPriceSold'; $this->_emptyMessage = $this->l('Empty recordset returned'); $this->_pagingMessage = $this->l('Displaying') . ' {0} - {1} ' . $this->l('of') . ' {2}'; $this->_columns = array(array('id' => 'name', 'header' => $this->l('Name'), 'dataIndex' => 'name', 'align' => 'left', 'width' => 370), array('id' => 'totalQuantitySold', 'header' => $this->l('Total Quantity Sold'), 'dataIndex' => 'totalQuantitySold', 'width' => 20, 'align' => 'right'), array('id' => 'totalPriceSold', 'header' => $this->l('Total Price Sold'), 'dataIndex' => 'totalPriceSold', 'width' => 60, 'align' => 'right'), array('id' => 'totalPageViewed', 'header' => $this->l('Total Viewed'), 'dataIndex' => 'totalPageViewed', 'width' => 30, 'align' => 'right')); parent::__construct(); $this->displayName = $this->l('Best categories'); $this->description = $this->l('A list of the best categories'); }
function __construct() { $this->name = 'statsbestmanufacturers'; $this->tab = 'analytics_stats'; $this->version = '1.0'; $this->author = 'PrestaShop'; $this->_defaultSortColumn = 'sales'; $this->_emptyMessage = $this->l('Empty recordset returned'); $this->_pagingMessage = $this->l('Displaying') . ' {0} - {1} ' . $this->l('of') . ' {2}'; $this->_columns = array(array('id' => 'name', 'header' => $this->l('Name'), 'dataIndex' => 'name', 'align' => 'left', 'width' => 200), array('id' => 'quantity', 'header' => $this->l('Quantity sold'), 'dataIndex' => 'quantity', 'width' => 60, 'align' => 'right'), array('id' => 'sales', 'header' => $this->l('Total paid'), 'dataIndex' => 'sales', 'width' => 60, 'align' => 'right')); parent::__construct(); $this->displayName = $this->l('Best manufacturers'); $this->description = $this->l('A list of the best manufacturers'); }
public function __construct() { $this->name = 'statsbestcustomers'; $this->tab = 'analytics_stats'; $this->version = 1.0; $this->author = 'PrestaShop'; $this->need_instance = 0; parent::__construct(); $this->_defaultSortColumn = 'totalMoneySpent'; $this->_defaultSortDirection = 'DESC'; $this->_emptyMessage = $this->l('Empty recordset returned'); $this->_pagingMessage = sprintf($this->l('Displaying %1$s of %2$s'), '{0} - {1}', '{2}'); $this->_columns = array(array('id' => 'lastname', 'header' => $this->l('Lastname'), 'dataIndex' => 'lastname', 'width' => 50), array('id' => 'firstname', 'header' => $this->l('Firstname'), 'dataIndex' => 'firstname', 'width' => 50), array('id' => 'email', 'header' => $this->l('Email'), 'dataIndex' => 'email', 'width' => 120), array('id' => 'totalVisits', 'header' => $this->l('Visits'), 'dataIndex' => 'totalVisits', 'width' => 80, 'align' => 'right'), array('id' => 'totalMoneySpent', 'header' => $this->l('Money spent'), 'dataIndex' => 'totalMoneySpent', 'width' => 80, 'align' => 'right')); $this->displayName = $this->l('Best customers'); $this->description = $this->l('A list of the best customers'); }
public function __construct() { $this->name = 'statsbestcategories'; $this->tab = 'analytics_stats'; $this->version = 1.0; $this->author = 'PrestaShop'; $this->need_instance = 0; parent::__construct(); $this->_defaultSortColumn = 'totalPriceSold'; $this->_defaultSortDirection = 'DESC'; $this->_emptyMessage = $this->l('Empty recordset returned'); $this->_pagingMessage = sprintf($this->l('Displaying %1$s of %2$s'), '{0} - {1}', '{2}'); $this->_columns = array(array('id' => 'name', 'header' => $this->l('Name'), 'dataIndex' => 'name', 'align' => 'left', 'width' => 140), array('id' => 'totalQuantitySold', 'header' => $this->l('Total Quantity Sold'), 'dataIndex' => 'totalQuantitySold', 'width' => 20, 'align' => 'right'), array('id' => 'totalPriceSold', 'header' => $this->l('Total Price Sold'), 'dataIndex' => 'totalPriceSold', 'width' => 30, 'align' => 'right'), array('id' => 'totalPageViewed', 'header' => $this->l('Total Viewed'), 'dataIndex' => 'totalPageViewed', 'width' => 30, 'align' => 'right')); $this->displayName = $this->l('Best categories'); $this->description = $this->l('A list of the best categories'); }
public function __construct() { $this->name = 'statsbestproducts'; $this->tab = 'analytics_stats'; $this->version = 1.0; $this->author = 'PrestaShop'; $this->need_instance = 0; parent::__construct(); $this->_defaultSortColumn = 'totalPriceSold'; $this->_defaultSortDirection = 'DESC'; $this->_emptyMessage = $this->l('Empty recordset returned'); $this->_pagingMessage = sprintf($this->l('Displaying %1$s of %2$s'), '{0} - {1}', '{2}'); $this->_columns = array(array('id' => 'reference', 'header' => $this->l('Ref.'), 'dataIndex' => 'reference', 'align' => 'left', 'width' => 50), array('id' => 'name', 'header' => $this->l('Name'), 'dataIndex' => 'name', 'align' => 'left', 'width' => 100), array('id' => 'totalQuantitySold', 'header' => $this->l('Quantity sold'), 'dataIndex' => 'totalQuantitySold', 'width' => 50, 'align' => 'right'), array('id' => 'avgPriceSold', 'header' => $this->l('Price sold'), 'dataIndex' => 'avgPriceSold', 'width' => 50, 'align' => 'right'), array('id' => 'totalPriceSold', 'header' => $this->l('Sales'), 'dataIndex' => 'totalPriceSold', 'width' => 50, 'align' => 'right'), array('id' => 'averageQuantitySold', 'header' => $this->l('Quantity sold/ day'), 'dataIndex' => 'averageQuantitySold', 'width' => 60, 'align' => 'right'), array('id' => 'totalPageViewed', 'header' => $this->l('Page viewed'), 'dataIndex' => 'totalPageViewed', 'width' => 60, 'align' => 'right'), array('id' => 'quantity', 'header' => $this->l('Available quantity for sale'), 'dataIndex' => 'quantity', 'width' => 150, 'align' => 'right')); $this->displayName = $this->l('Best products'); $this->description = $this->l('A list of the best products'); }
public function __construct() { $this->name = 'statsbestmanufacturers'; $this->tab = 'analytics_stats'; $this->version = '1.0'; $this->author = 'PrestaShop'; $this->need_instance = 0; parent::__construct(); $this->default_sort_column = 'sales'; $this->default_sort_direction = 'DESC'; $this->empty_message = $this->l('Empty recordset returned.'); $this->paging_message = sprintf($this->l('Displaying %1$s of %2$s'), '{0} - {1}', '{2}'); $this->columns = array(array('id' => 'name', 'header' => $this->l('Name'), 'dataIndex' => 'name', 'align' => 'left', 'width' => 200), array('id' => 'quantity', 'header' => $this->l('Quantity sold'), 'dataIndex' => 'quantity', 'width' => 60, 'align' => 'right'), array('id' => 'sales', 'header' => $this->l('Total paid'), 'dataIndex' => 'sales', 'width' => 60, 'align' => 'right')); $this->displayName = $this->l('Best manufacturers'); $this->description = $this->l('Adds a list of the best manufacturers to the Stats dashboard.'); }
public function __construct() { $this->name = 'statsbestvouchers'; $this->tab = 'analytics_stats'; $this->version = 1.0; $this->author = 'PrestaShop'; $this->need_instance = 0; parent::__construct(); $this->default_sort_column = 'ca'; $this->default_sort_direction = 'DESC'; $this->empty_message = $this->l('Empty recordset returned.'); $this->paging_message = sprintf($this->l('Displaying %1$s of %2$s'), '{0} - {1}', '{2}'); $this->columns = array(array('id' => 'code', 'header' => $this->l('Code'), 'dataIndex' => 'code', 'align' => 'left'), array('id' => 'name', 'header' => $this->l('Name'), 'dataIndex' => 'name', 'align' => 'left'), array('id' => 'ca', 'header' => $this->l('Sales'), 'dataIndex' => 'ca', 'align' => 'right'), array('id' => 'total', 'header' => $this->l('Total used'), 'dataIndex' => 'total', 'align' => 'center')); $this->displayName = $this->l('Best vouchers'); $this->description = $this->l('Adds a list of the best vouchers to the Stats dashboard.'); }
public function __construct() { $this->name = 'statsbestproducts'; $this->tab = 'analytics_stats'; $this->version = 1.0; $this->author = 'PrestaShop'; $this->need_instance = 0; parent::__construct(); $this->default_sort_column = 'totalPriceSold'; $this->default_sort_direction = 'DESC'; $this->empty_message = $this->l('An empty record-set was returned.'); $this->paging_message = sprintf($this->l('Displaying %1$s of %2$s'), '{0} - {1}', '{2}'); $this->columns = array(array('id' => 'reference', 'header' => $this->l('Reference'), 'dataIndex' => 'reference', 'align' => 'left'), array('id' => 'name', 'header' => $this->l('Name'), 'dataIndex' => 'name', 'align' => 'left'), array('id' => 'totalQuantitySold', 'header' => $this->l('Quantity sold'), 'dataIndex' => 'totalQuantitySold', 'align' => 'center'), array('id' => 'avgPriceSold', 'header' => $this->l('Price sold'), 'dataIndex' => 'avgPriceSold', 'align' => 'right'), array('id' => 'totalPriceSold', 'header' => $this->l('Sales'), 'dataIndex' => 'totalPriceSold', 'align' => 'right'), array('id' => 'averageQuantitySold', 'header' => $this->l('Quantity sold in a day'), 'dataIndex' => 'averageQuantitySold', 'align' => 'center'), array('id' => 'totalPageViewed', 'header' => $this->l('Page views'), 'dataIndex' => 'totalPageViewed', 'align' => 'center'), array('id' => 'quantity', 'header' => $this->l('Available quantity for sale'), 'dataIndex' => 'quantity', 'align' => 'center')); $this->displayName = $this->l('Best-selling products'); $this->description = $this->l('Adds a list of the best-selling products to the Stats dashboard.'); }
public function __construct() { $this->name = 'statsbestcategories'; $this->tab = 'analytics_stats'; $this->version = '1.2'; $this->author = 'PrestaShop'; $this->need_instance = 0; parent::__construct(); $this->default_sort_column = 'totalPriceSold'; $this->default_sort_direction = 'DESC'; $this->empty_message = $this->l('Empty recordset returned'); $this->paging_message = sprintf($this->l('Displaying %1$s of %2$s'), '{0} - {1}', '{2}'); $this->columns = array(array('id' => 'name', 'header' => $this->l('Name'), 'dataIndex' => 'name', 'align' => 'left'), array('id' => 'totalQuantitySold', 'header' => $this->l('Total Quantity Sold'), 'dataIndex' => 'totalQuantitySold', 'align' => 'center'), array('id' => 'totalPriceSold', 'header' => $this->l('Total Price'), 'dataIndex' => 'totalPriceSold', 'align' => 'right'), array('id' => 'totalPageViewed', 'header' => $this->l('Total Viewed'), 'dataIndex' => 'totalPageViewed', 'align' => 'center')); $this->displayName = $this->l('Best categories'); $this->description = $this->l('Adds a list of the best categories to the Stats dashboard.'); $this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_); }
public function __construct() { $this->name = 'statsbestcustomers'; $this->tab = 'analytics_stats'; $this->version = 1.0; $this->author = 'PrestaShop'; $this->need_instance = 0; parent::__construct(); $this->default_sort_column = 'totalMoneySpent'; $this->default_sort_direction = 'DESC'; $this->empty_message = $this->l('Empty recordset returned'); $this->paging_message = sprintf($this->l('Displaying %1$s of %2$s'), '{0} - {1}', '{2}'); $currency = new Currency(Configuration::get('PS_CURRENCY_DEFAULT')); $this->columns = array(array('id' => 'lastname', 'header' => $this->l('Last Name'), 'dataIndex' => 'lastname', 'align' => 'center'), array('id' => 'firstname', 'header' => $this->l('First Name'), 'dataIndex' => 'firstname', 'align' => 'center'), array('id' => 'email', 'header' => $this->l('Email'), 'dataIndex' => 'email', 'align' => 'center'), array('id' => 'totalVisits', 'header' => $this->l('Visits'), 'dataIndex' => 'totalVisits', 'align' => 'center'), array('id' => 'totalValidOrders', 'header' => $this->l('Valid orders'), 'dataIndex' => 'totalValidOrders', 'align' => 'center'), array('id' => 'totalMoneySpent', 'header' => $this->l('Money spent') . ' (' . Tools::safeOutput($currency->iso_code) . ')', 'dataIndex' => 'totalMoneySpent', 'align' => 'center')); $this->displayName = $this->l('Best customers'); $this->description = $this->l('Adds a list of the best customers to the Stats dashboard.'); }