Jump to content

Include Product ID in front office search


George Bazz

Recommended Posts

Without question this would be possible - but quite likely with some downsides. Imagine we have let's say 2'000 products. Starting with ID 1 and going up to 2000 and something. PrestaShops search is a full text search with no specification how it performs the search.

 

If you have set the minimum search length to 3 characters as an example, any search with ID's less than 100 wouln't work at all. So you had to set the minimum search length to 1 which leads to other problems.  If you are searching the product with ID 1, prestashop would then also find the following products:

 

All products with 1 in its title, product reference, eventually short descriptions and so on. So it would find products with 1, 10, 11, 100, 101, 1011 in any search field. To avoid this, you could define some kind of prefix like for example:

 

id:1

 

This would lead the override function only to search for IDs and nothing else. However, the prefix wouln't be self explanatory. So users must know about this "hidden" feature.

Edited by Scully (see edit history)
Link to comment
Share on other sites

  • 1 year later...

Kind of outdated but well..

I ended up creating a module that lets me search products by ID in the front office. Not only that, but if you wish you can enable a special block in every Product Page that indicates which the current product ID is. This is especially helpful, if you sell a lot by phone, and people keep asking you for complicated names and/or reference numbers. By telling you the ID you can search directly by it in a specialized search box, available only for logged in employees and navigate your products super fast!

Check it out:
https://addons.prestashop.com/en/search-filters/45058-quick-jump-to-product-by-id-search-by-id.html

Link to comment
Share on other sites

  • 1 year later...
On 6/20/2019 at 4:56 PM, George Bazz said:

Kind of outdated but well..

I ended up creating a module that lets me search products by ID in the front office. Not only that, but if you wish you can enable a special block in every Product Page that indicates which the current product ID is. This is especially helpful, if you sell a lot by phone, and people keep asking you for complicated names and/or reference numbers. By telling you the ID you can search directly by it in a specialized search box, available only for logged in employees and navigate your products super fast!

Check it out:
https://addons.prestashop.com/en/search-filters/45058-quick-jump-to-product-by-id-search-by-id.html

Is this module still available. Your links isn`t working and I can`t find it. Using PS 1.7.

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