Jump to content

AdminProductsControler changes to allow filter quantity > than X


KalimAz

Recommended Posts

Hi,

I'm checking on how to modify the product filter to enable in backend list products with a quantity greater than X. At least will be enough to list the ones that has stock at that moment.

I'm using prestashop 1.6.1.23 and I have found that the affected colum is:

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

Any TIP on this?

Thank in advance

Rafael

Link to comment
Share on other sites

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...