Question: How To Remove Options On Product List

How To Remove Options On Product List

Hi, please how can to hide the options **Print Barcodes** and **Print Labels** from product list (kindly see attachment below). Thank you

DE

Dere Ezekiel

Asked
Hi,
please how can to hide the options **Print Barcodes** and **Print Labels** from product list (kindly see attachment below).
Thank you
  • MS

    Mian Saleem

    Answered
    Hello,

    To hide the actions icon, you can modify the `get_products` method of the `app/controllers/Products.php`

    Thank you
  • DE

    Dere Ezekiel

    Answered
    Please what should i do exactly
    And at which line.
  • MS

    Mian Saleem

    Answered
    Hello,

    You can replace the line no 53

    ```
    $this->datatables->add_column("Actions", "<div class='text-center'><div class='btn-group'><a href='".site_url('products/view/$1')."' title='" . lang("view") . "' class='tip btn btn-primary btn-xs' data-toggle='ajax'><i class='fa fa-file-text-o'></i></a><a href='".site_url('products/single_barcode/$1')."' title='".lang('print_barcodes')."' class='tip btn btn-default btn-xs' data-toggle='ajax-modal'><i class='fa fa-print'></i></a> <a href='".site_url('products/single_label/$1')."' title='".lang('print_labels')."' class='tip btn btn-default btn-xs' data-toggle='ajax-modal'><i class='fa fa-print'></i></a> <a class='tip image btn btn-primary btn-xs' id='$4 ($3)' href='" . base_url('uploads/$2') . "' title='" . lang("view_image") . "'><i class='fa fa-picture-o'></i></a> <a href='" . site_url('products/edit/$1') . "' title='" . lang("edit_product") . "' class='tip btn btn-warning btn-xs'><i class='fa fa-edit'></i></a> <a href='" . site_url('products/delete/$1') . "' onClick=\"return confirm('" . lang('alert_x_product') . "')\" title='" . lang("delete_product") . "' class='tip btn btn-danger btn-xs'><i class='fa fa-trash-o'></i></a></div></div>", "pid, image, code, pname, barcode_symbology");
    ```

    with

    ```
    $this->datatables->add_column("Actions", "<div class='text-center'><div class='btn-group'><a href='".site_url('products/view/$1')."' title='" . lang("view") . "' class='tip btn btn-primary btn-xs' data-toggle='ajax'><i class='fa fa-file-text-o'></i></a> <a class='tip image btn btn-primary btn-xs' id='$4 ($3)' href='" . base_url('uploads/$2') . "' title='" . lang("view_image") . "'><i class='fa fa-picture-o'></i></a> <a href='" . site_url('products/edit/$1') . "' title='" . lang("edit_product") . "' class='tip btn btn-warning btn-xs'><i class='fa fa-edit'></i></a> <a href='" . site_url('products/delete/$1') . "' onClick=\"return confirm('" . lang('alert_x_product') . "')\" title='" . lang("delete_product") . "' class='tip btn btn-danger btn-xs'><i class='fa fa-trash-o'></i></a></div></div>", "pid, image, code, pname, barcode_symbology");
    ```

    > Please be informed that we don't offer support for modifications or modified versions. You are allowed to edit the item code at your own risk as per license.

    Thank you
  • DE

    Dere Ezekiel

    Answered
    **[Mian Saleem](/u/saleem)** alright
    thx
  • Login to Reply