VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: goldenprizm on September 25, 2012, 02:31:22 AM

Title: Search by product sku... Need some help
Post by: goldenprizm on September 25, 2012, 02:31:22 AM
Joomla 2.5
virtuemart 2.0.10

Does anyone know how we can get the virtuemart search module to search by product sku...........
Title: Re: Search by product sku... Need some help
Post by: Peter Skotte on November 06, 2012, 09:44:56 AM
I really really need this function also. It was working fine in VM 1, but search for SKU in VM 2 returns 0 results.

There seems to be quite a lot of requests/questions regarding this, but no real answers?

Please advise?

Thanks,

Peter
Title: Re: Search by product sku... Need some help
Post by: bytelord on November 06, 2012, 14:55:14 PM
Hello,

Please take look here: http://forum.virtuemart.net/index.php?topic=109318.msg366139#msg366139
This code part has been added for the next release. You could add it and to your current version also.

Regards
Title: Re: Search by product sku... Need some help
Post by: Peter Skotte on November 07, 2012, 10:54:54 AM
Well, thanks for the answer. However the suggested page is regarding adding dashes to the search string.
My problem is that searches for numbers return 0 results, unless the number is part of the product name, or description. If I search for the SKU number alone, I get 0 results.

When looking at the code:
var $valid_BE_search_fields = array('product_name', 'product_sku', 'product_s_desc', '`l`.`metadesc`');
SKU should be included, but it does not work for me?

Searching for SKU numbers is critical for the shop, so I really need a solution?

Thanks,

Peter
Title: Re: Search by product sku... Need some help
Post by: bytelord on November 07, 2012, 20:42:37 PM
Hello,

I am checking it to be sure, the dev team also.

Regards
Title: Re: Search by product sku... Need some help
Post by: bytelord on November 07, 2012, 21:10:28 PM
Please can you check if under Configuration -> Product Order Settings you have enable sku under available search fields?

The issue that have been reported have to do with "-" that have been fixed for the next release.

Regards