Jump to content

Sorting arrows in stock management


Recommended Posts

/controllers/admin/AdminStockManagement.php

there is a code like:
 

	public function __construct()
	{
		$this->context = Context::getContext();
		$this->table = 'product';
		$this->className = 'Product';
		$this->lang = true;
		$this->multishop_context = Shop::CONTEXT_ALL;

		$this->fields_list = array(
			'reference' => array(
				'title' => $this->l('Product reference'),
				'align' => 'center',
				'filter_key' => 'a!reference',
				'width' => 200
			),
			'ean13' => array(
				'title' => $this->l('EAN13'),
				'align' => 'center',
				'filter_key' => 'a!ean13',
				'width' => 100
			),
			'upc' => array(
				'title' => $this->l('UPC'),
				'align' => 'center',
				'filter_key' => 'a!upc',
				'width' => 100
			),
			'name' => array(
				'title' => $this->l('Name'),
			),
			'stock' => array(
				'title' => $this->l('Quantity'),
				'hint' => $this->l('Quantitity total for all warehouses.'),
				'width' => 100,
				'orderby' => false,
				'filter' => false,
				'search' => false,
			),
		);

from this part:
 

			'stock' => array(
				'title' => $this->l('Quantity'),
				'hint' => $this->l('Quantitity total for all warehouses.'),
				'width' => 100,
				'orderby' => false,
				'filter' => false,
				'search' => false,
			),

remove

'orderby' => false,

effect:

woWVm76.png

Link to comment
Share on other sites

×
×
  • Create New...