VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: TAIWAR on May 27, 2014, 19:08:54 PM

Title: VM search module no result
Post by: TAIWAR on May 27, 2014, 19:08:54 PM
VM2026d

I use VM search module I don't understand I haven't got result...

I ve already looked on http://forum.virtuemart.net/index.php?topic=120126.0 but no result...
Title: Re: VM search module no result
Post by: TAIWAR on June 01, 2014, 17:25:29 PM
someone please thanks :(
Title: Re: VM search module no result
Post by: TAIWAR on June 03, 2014, 12:11:33 PM
 :'( :'( :'( :'( :'(
Title: Re: VM search module no result
Post by: GJC Web Design on June 03, 2014, 13:58:56 PM
how can anyone help without a live url? crystal ball perhaps?
Title: Re: VM search module no result
Post by: TAIWAR on June 03, 2014, 14:47:53 PM
lol.IT's on local...
Title: Re: VM search module no result
Post by: TAIWAR on June 04, 2014, 22:30:18 PM
I put rewrite URL SEF : no and save , then I put it to yes and save and it works well I can use the search VM but only for few minute.
Then I try again later and it doesnt work I have to put again rewrite URL SEF to no save and yes save .... ? whats wrong ???
Title: Re: VM search module no result
Post by: GJC Web Design on June 04, 2014, 23:30:51 PM
Could be BECAUSE your on local host and the settings you have in your apache setup ... I would think that if the search didn't work there would be dozens of posts here complaining - have you tried on a live site?

The search basically uses the category model with filtering - so what is passed in the url is what makes it work .. check the difference in urls b4 and after.. etc
Title: Re: VM search module no result
Post by: TAIWAR on June 05, 2014, 23:51:55 PM
I don't know what is the problem, often it works and often it doesn't work...
it depend on search sometimes when I have for ex :
/caissettes-et-napperons/search.html?keyword=tulipe&limitstart=0&option=com_virtuemart&view=category
it works

I don't know if it could be the refresh because sometime when I make a search it always the same category id...
/caissettes-et-napperons.html?keyword=moule&search=true&view=category&option=com_virtuemart&virtuemart_category_id=20
/poches-et-douilles.html?keyword=tulipe&search=true&view=category&option=com_virtuemart&virtuemart_category_id=20
Title: Re: VM search module no result
Post by: GJC Web Design on June 06, 2014, 11:42:50 AM
Are you talking about the search module or the search VM view?????

in my testing search module stays on virtuemart_category_id=0 unless u enable Search Filter Category in the module

AFAIK if you start a search with the search VIEW in a category that category id is attached to the query ( e.g. the virtuemart_category_id=20 ) on the rest of the searches by this line in components/com_virtuemart/views/category/view.html.php

if ($categoryId === -1 and $virtuemart_manufacturer_id === -1){
$categoryId = ShopFunctionsF::getLastVisitedCategoryId();
}


Title: Re: VM search module no result
Post by: ukolar on August 23, 2014, 11:51:53 AM
I have te same problem for months and I don't know what to do. To do fresh install Joomla and import this DB or how to fix this.
My page: http://www.montessori-materials.si/index.php/zaznavane1
whatever I write in search box i get message No result (...). I don't have checked SEO Disabled in VM configuration. Everything else working OK.

If I check SEO Disabled in VM configuration then search is working! But doesn't work choosing how many items I want to show on one page and doesn't work buttons for next pages and ALL the TIME showing me just first page in category!?

Can anybody help, PLEASE. Thank you.
Uros
Title: Re: VM search module no result
Post by: GJC Web Design on August 23, 2014, 12:32:43 PM
with simple SEO (no for VM seo disbled + Joomla Search Engine Friendly URLs -> yes - rewrite -> no)
I get urls like index.php/shop/search?keyword=hammer&limitstart=0&option=com_virtuemart&view=category

you have /index.php/search/0/?keyword=bells&search=true&limitstart=0&category=0&option=com_virtuemart&view=category

have you got a menu somewhere to com_virtuemart - hidden or otherwise?

what is this weird '0'  ?

You can see it in the search module action url
what is your Use Product and Category IDs setting on the vm seo tab?
Title: Re: VM search module no result
Post by: ukolar on August 25, 2014, 09:48:32 AM
Thanks for reply. I have in VM SEO tab:
Use Product and Category IDs enabled, so now I removed and now I don't have this /0/,

when I disable SEO (I check checkbox in SEO tab in VM) then I get URL like this and IT'S WORKING!
http://www.montessori-materials.si/index.php/view/category/search/true/limitstart/0/virtuemart_category_id/0?keyword=mmm006&search=true&limitstart=0&category=0&option=com_virtuemart&view=category

with SEO enabled (I didn't check checkbox in SEO tab in VM) I get this and IS NOR WORKING!
http://www.montessori-materials.si/index.php/search?keyword=mmm006&search=true&limitstart=0&category=0&option=com_virtuemart&view=category

?
Thank you
Uros
Title: Re: VM search module no result
Post by: GJC Web Design on August 25, 2014, 11:33:44 AM
but the normal setting (for me anyway) in Joomla sef on/VM SEF on
Title: Re: VM search module no result
Post by: ukolar on August 26, 2014, 12:01:06 PM
So do you have any idea how to solve this problem?
Thanks.
Uros
Title: Re: VM search module no result
Post by: jjk on August 26, 2014, 19:43:37 PM
Quote from: ukolar on August 23, 2014, 11:51:53 AM
whatever I write in search box i get message No result (...).

In your case I think your problem is related to your Google translation, which is not working. It says something like "failed to load the given url". I doubt that a Google translation extension works correctly with VirtueMart. If you want a multilingual shop, you should use the multilingual capabilities built into Joomla and VirtueMart.
The VirtueMart Search module normally works language specific. One search module for Slovenian, one search module copy for English, etc. If you ask the search module to search for a slovenian word in the english database table, it will not find it.

I would suggest that you read some tutorials about how to set up a multilingual shop, like for example this one:
http://docs.virtuemart.net/tutorials/multilingual-store/99-multilanguage-setup.html
Title: Re: VM search module no result
Post by: ukolar on August 28, 2014, 14:45:13 PM
I try to disable Gtranslate and was still not working. So this is not a solution :(