Jump to content

Show Product visibility in AdminProducts backend


slates

Recommended Posts

/controllers/admin/AdminProductsController.php (from line 241 in PS 1.5.6.2):



if (Configuration::get('PS_STOCK_MANAGEMENT'))
    $this->fields_list['sav_quantity'] = array(
        'title' => $this->l('Quantity'),
        'width' => 90,
'type' => 'int',
'align' => 'right',
'filter_key' => 'sav!quantity',
'orderby' => true,
'hint' => $this->l('This is the quantity available in the current shop/group.'),
);

// ADD THESE 4 LINES
$this->fields_list['visibility'] = array(
'title' => $this->l('Visibility'),
'filter_key' => 'a!visibility',
);

$this->fields_list['active'] = array(
'title' => $this->l('Status'),
'width' => 70,
'active' => 'status',
'filter_key' => $alias.'!active',
'align' => 'center',
'type' => 'bool',
'orderby' => false
);

Edited by erouvier29 (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...