VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: pvlooy on June 08, 2016, 17:59:41 PM

Title: 404 in URL search module
Post by: pvlooy on June 08, 2016, 17:59:41 PM
Hello,

I'm using the latest version of Joomla (3.5.1) and Virtuemart (VM3.0.14) and I'm experiencing problems when both using the search module and the search box on the category page.
For some reason 404 appears in my URL or it just searches in random categories. This makes the navigation (next page of search results) and changing the number of results to display also not function (also 404 in url).
So it puts either a random category in the url or it comes up with something like this when searching on "bord": /webshop/search/404?keyword=bord&limitstart=0&option=com_virtuemart&view=category&virtuemart_category_id=0

Any ideas on how to fix this?
I tried manually changing the url to /webshop/search/bord (thus, immediately followed by the keyword), which fixes all the issues, however, I don't know where to change this.

Kind regards,
Patrick
Title: Re: 404 in URL search module
Post by: PRO on June 08, 2016, 22:47:01 PM
are you using a 3rd party sef component?


shoud be

webshop/search?keyword=bord&x=0&y=0&limitstart=0&option=com_virtuemart&view=category&virtuemart_category_id=0
Title: Re: 404 in URL search module
Post by: pvlooy on June 20, 2016, 17:41:26 PM
Thanks for your response. But no, I'm not using a 3rd party component for SEF urls.
Title: Re: 404 in URL search module
Post by: GJC Web Design on June 21, 2016, 01:17:14 AM
have u got a menu, hidden or otherwise set to the vm cat view and virtuemart_category_id=0 ?

you could try that and call it search for example.. the search should pick up the menu and use it
Title: Re: 404 in URL search module
Post by: pvlooy on July 04, 2016, 12:50:14 PM
Unfortunately, I have not been able to find a fix yet. Any suggestions ?
When searching my url becomes: /webshop/search/404?keyword=stift&limitstart=0&option=com_virtuemart&view=category&virtuemart_category_id=0

So in essence, I only need the 404 part out. Sometimes this is 404, another time (it seems) it is just a random category name. When I remove this part manually, everything works just fine.
Title: Re: 404 in URL search module
Post by: GJC Web Design on July 04, 2016, 13:23:07 PM
have u made a menu to the VM search?

or just manually change the action url in the form

also - why does it matter?  if it works...
Title: Re: 404 in URL search module
Post by: pvlooy on July 05, 2016, 09:50:36 AM
I have been trying to change the action URL, but do you know where to find the piece of code I need to delete? I have not been able to locate it yet...
Title: Re: 404 in URL search module
Post by: GJC Web Design on July 05, 2016, 11:12:09 AM
???

the search form is in the module and on the category template page
Title: Re: 404 in URL search module
Post by: pvlooy on July 05, 2016, 12:14:18 PM
Yes, I know that. But I mean the piece of code I need to delete... I do not see what causes the 404 or random category...
Title: Re: 404 in URL search module
Post by: GJC Web Design on July 05, 2016, 12:25:27 PM
it is a jroute 'd url...  the router forms this

you can stick a static url in there if u want
Title: Re: 404 in URL search module
Post by: pvlooy on July 05, 2016, 13:13:44 PM
Okay, I changed the Jroute URL to /webshop/search?keyword=.$output.&limitstart=0&option=com_virtuemart&view=category&virtuemart_category_id=0
Now it works fine. Thanks!
Title: Re: 404 in URL search module
Post by: GJC Web Design on July 05, 2016, 14:37:13 PM
or u can make a menu to the search (hidden or otherwise) then add the itemid to the end of that url .. then it should route