VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: babu65 on December 18, 2016, 04:44:11 AM

Title: Mod search product don't work
Post by: babu65 on December 18, 2016, 04:44:11 AM
Hi to all,
I've a problem with the module VM product search, I'm using it with Joomla 3.6.5 and VM 3.0.18
The module working but it don't find the products.
In the VM configuration --> Product Order settings --> available search fields I've selected: Product name - Category name - Product description - category description
I've tried to change template using Protostar and Beez3 but it's the same.
I've tried use PLG jQuery Easy and also in this case the problem is the same.
The site is http://agriturismovip.it/ (http://agriturismovip.it/)
Any suggestion about?

Thanks in advance
Title: Re: Mod search product don't work
Post by: GJC Web Design on December 18, 2016, 11:23:04 AM
very odd

the url is correct

keyword=tende&view=category&option=com_virtuemart&virtuemart_category_id=0

the display logic is correct because the VM search box appears on the results ( category ) display

but nothing is returned

It needs some debugging to see why the query returns nothing

Try joomla debug .. you can see then the DB queries
Title: Re: Mod search product don't work
Post by: babu65 on December 18, 2016, 13:09:40 PM
Hi GJC,
thanks for the prompt reply, I've activated the Joomla debug on http://agriturismovip.it/ (http://agriturismovip.it/) now I'll try to understand  but is not easy for me.
Title: Re: Mod search product don't work
Post by: GJC Web Design on December 18, 2016, 13:35:35 PM
had a quick look .. I see no query at all for e.g. %tende%
looks like it doesn't get that far..
are your categories published?
Title: Re: Mod search product don't work
Post by: babu65 on December 18, 2016, 16:08:46 PM
Yes, all my products categories are piblished in the both languages
Title: Re: Mod search product don't work
Post by: GJC Web Design on December 18, 2016, 16:50:25 PM
then needs some digging into to find where the query fails

models/ product.php
Title: Re: Mod search product don't work
Post by: babu65 on December 18, 2016, 18:39:16 PM
I I've tried to find in the files but my knowledge of PHP is not enough.
PLS can you see the files attached?

Thanks
Title: Re: Mod search product don't work
Post by: GJC Web Design on December 18, 2016, 22:58:27 PM
I know what is in product.php...  the debug/investigation has to be done on YOUR install.. everyone else works
Title: Re: Mod search product don't work
Post by: babu65 on December 19, 2016, 18:02:40 PM
I discovered a curious thing, unlike in Italian, in English, the product search works, but only if you are inside the category page sel product.
I do not understand anything  :(