News:

Support the VirtueMart project and become a member

Main Menu

Search by product sku... Need some help

Started by goldenprizm, September 25, 2012, 02:31:22 AM

Previous topic - Next topic

goldenprizm

Joomla 2.5
virtuemart 2.0.10

Does anyone know how we can get the virtuemart search module to search by product sku...........

Peter Skotte

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

bytelord

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
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

Peter Skotte

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

bytelord

Hello,

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

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

bytelord

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
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!