News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Search module doesn't work properly

Started by Yustas, June 05, 2012, 12:50:04 PM

Previous topic - Next topic

Yustas

I have product names likes 507127-B21. When i search for such part number, there is "No result : (507127B21)" Why it removes "-" from string and how to resolve this problem?

mikkidee

I'm having this same problem... client's product codes are in a terrible format (e.g. 01-01-01), but can't be changed, several thousand products...
Is it possible to include "-" in the search?
Please help, anyone...

babouz

Hi everyone !
I've exactly the same problem.... my client's codes are like 170.185 or 999565.45... and don't appear when I search by the module....

Have you find a solution to fix it ? Or if someone can help us to find where is the problem... this could be great !

Thank you
Where is mum? She is in the bathroom. Where is dad? He is not at home. Why? I don't know.

babouz

Is there anybody to help us please ?
It's a really huge problem !

Thank you
Where is mum? She is in the bathroom. Where is dad? He is not at home. Why? I don't know.

babouz

Sorry.... In fact I found a solution which works for me  ;D
Edit : administrator/components/com_virtuemart/helpers/config.php

Find :

return mb_ereg_replace('[^\w'.preg_quote($custom).']', '', $source);


Replace by :

return mb_ereg_replace('/[^\w'.preg_quote($custom).']/', '', $source);
Where is mum? She is in the bathroom. Where is dad? He is not at home. Why? I don't know.