public function __construct() { $this->bootstrap = true; $this->context = Context::getContext(); $this->table = 'product'; $this->list_id = 'product'; $this->className = 'Product'; $this->lang = true; $this->multishop_context = Shop::CONTEXT_ALL; $this->fields_list = array('reference' => array('title' => $this->l('Product reference'), 'filter_key' => 'a!reference'), 'ean13' => array('title' => $this->l('EAN13'), 'filter_key' => 'a!ean13'), 'upc' => array('title' => $this->l('UPC'), 'filter_key' => 'a!upc'), 'name' => array('title' => $this->l('Name')), 'stock' => array('title' => $this->l('Quantity'), 'orderby' => false, 'filter' => false, 'search' => false, 'class' => 'fixed-width-sm', 'align' => 'center', 'hint' => $this->l('Quantity total for all warehouses.'))); parent::__construct(); // overrides confirmation messages specifically for this controller $this->_conf = array(1 => $this->l('The product was successfully added to your stock.'), 2 => $this->l('The product was successfully removed from your stock.'), 3 => $this->l('The transfer was successfully completed.')); }
public function __construct() { parent::__construct(); $this->fields_list['stock']['callback'] = 'callbackStockQuantity'; }