News:

Support the VirtueMart project and become a member

Main Menu

VM Product incorrect product results

Started by csho, August 11, 2014, 10:19:51 AM

Previous topic - Next topic

csho

I noticed that the vm product search module does a string search within the product, displaying whole or a PART of the searched term that matches with a product.

I am currently using in to search product with some Product ID codes that match the specific product placed in the product description.
From what I understand it works like this:
E.g I search ABCD01
----->Result: Products with ABCD01
IF the isn't a product with that id code it returns products that have that string in them e.g
----->Result: Instead of zero products it returns product with e.g EFGHABCD01

Because "ABCD01" is including the the word.
Is there any way to make this search more "strict" for my needs? I am not concern about Upper or Lower Cases, I am happy with it working regardless I type eg. an A or an a.

GJC Web Design

You would probably have to rewrite some of the queries in the sortSearchListQuery () function in the product model?

they are all LIKE  %[searchterm]% queries
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