News:

Looking for documentation? Take a look on our wiki

Main Menu

feature request:search by ID

Started by sandomatyas, September 24, 2018, 16:32:58 PM

Previous topic - Next topic

sandomatyas

In Joomla you can search for articles, modules, users, etc by id, when you type like id:123
It would be great using something similar with Virtuemart too
When I check the core class UsersModelUsers it's a simple code:
if (stripos($search, 'id:') === 0)
{
$query->where('a.id = ' . (int) substr($search, 3));
}

it sounds easy to implement
In the core code it also works with username (users), author (articles), link (menus), uid (user notes) so maybe VM could also use some more fields for that.

PRO

what do you have for your search settings?

Jörgen

I am not sure what sandomatyas end means, but searching 34 or id:34 is not the same thing. Searching for 34 gives probably a lot of hits. Searching id:34 should give only one return item. id:34

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

sandomatyas

Quote from: Jörgen on September 29, 2018, 20:55:28 PM
I am not sure what sandomatyas end means, but searching 34 or id:34 is not the same thing. Searching for 34 gives probably a lot of hits. Searching id:34 should give only one return item. id:34

Jörgen @ Kreativ Fotografi

exactly :)

sandomatyas

Any update with this maybe? I had to modify one of my sites to achive this because we us it on a daily basis but it would be great having a core solution for that.

GJC Web Design

+1 for this ...  would be very useful
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation