Question: Show All Products Pos

Show All Products Pos

in pos page When I do a search for a specific product name in product and barcode field, how can I show all the products that contain this name and not just show the first 5 results?

in pos page

When I do a search for a specific product name in product and barcode field, how can I show all the products that contain this name and not just show the first 5 results?

Like a system, "" shows all products that contain the searched word
Can i do that??
  • MS

    Mian Saleem

    Answered
    Hello,

    The default limit is 5. You can change the limit by editing the `getProductNames` method of `app/models/admin/Sales_model.php` to change the limit.

    Thank you
  • ok but i want to enable scrolling how??
    Attachments
  • MS

    Mian Saleem

    Answered
    Hello,

    You can modify the item code as you need. Please be informed that we don't offer support for modifications or modified versions. You are allowed to do it at your own risk.

    You can set the `max-height` and `overflow-y` for the `.ui-autocomplete.ui-menu` some like below

    ```
    <style>
    .ui-autocomplete.ui-menu {
    max-height: 300px;
    overflow-y: auto;
    }
    </style>
    ```

    in the POS view file `themes/default/admin/views/pos/add.php`

    Thank you
  • thank you very much
  • Login to Reply