News:

Looking for documentation? Take a look on our wiki

Main Menu

VM Search module - no results on a VM Categories page

Started by rexel99, November 08, 2013, 00:39:16 AM

Previous topic - Next topic

rexel99

Yes thanks, i got the rules sorted (with some trial and error)..
Basically I have added 4 (for the four categories) that read as..
RewriteRule ^road/search(.*)$ /component/virtuemart/search$1 [L,R=301]

So at least for the offending menu links, the search function is redirected back to the search module and the results all work properly.

Maxim Pishnyak

Quote from: rexel99 on November 12, 2013, 21:40:06 PM
so it's a lot to keep track of and do as I am not a developer either, good with testing though.
I'm not sure that perfoming tests, as end-user can do, could be so hard.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

PRO

Quote from: rexel99 on November 14, 2013, 06:42:55 AM
Yes thanks, i got the rules sorted (with some trial and error)..
Basically I have added 4 (for the four categories) that read as..
RewriteRule ^road/search(.*)$ /component/virtuemart/search$1 [L,R=301]

So at least for the offending menu links, the search function is redirected back to the search module and the results all work properly.

you are doing it for nothing, there is another problem deeper.

The deeper problem could also conflict with other things on your site

Lockerbie

Good evening,

I'm having a few problems with the VM search module also. (J! 2.5.16 - VM 2.0.24b)

1.
While being on a categorypage, say 'men' and searching for 'nailpolish' (it's a beautysalon-website), first there were no results at all.
But I found (part of) a solution on this thread: https://forum.virtuemart.net/index.php?topic=112741.msg395942#msg395942
Only the first part worked. In modules/mod_virtuemart/search/tmpl/default.php, around line 45 I put:
<input type="hidden" name="virtuemart_category_id" value="0" />
After that, the search for other products than the products on the categorypage you're visiting, are showing. But... you can only view the first page of the search results.

Yes, Joomla Sef is turned on, and that's probably the cause. The url of the first page of the results is showing something like:
http://www.websiteaddress.com/maincategory/men?keyword=nailpolish&search=true&view=category&option=com_virtuemart&virtuemart_category_id=0
and the url for the second page is showing something like:
http://www.websiteaddress.com/maincategory/men/search/nailpolish/results,19-18
but with a blank page and no results. With JoomlaSef turned off, everyting works all right, but off course that's not the best or most beautiful option.
I've tried with Joomla Sef turned on and VM Sef turned off, and that's also working.

2.
The default VM searchbox that I've set to show on all pages is working a little bit, see problem #1. above.
But the searchbox on the browse-view-page isn't working at all when turning JoomlaSef on. When turning JoomlaSef off, this also works and shows you the results.

Please, can anyone help me with this and/or give me a clue about how to adjust this?  I guess this has to do with the htaccess-file, but what to put where in order to get both searchboxes working correctly?

Lockerbie

Quote from: Lockerbie on November 21, 2013, 21:56:48 PM
Yes, Joomla Sef is turned on, and that's probably the cause. The url of the first page of the results is showing something like:
http://www.websiteaddress.com/maincategory/men?keyword=nailpolish&search=true&view=category&option=com_virtuemart&virtuemart_category_id=0
and the url for the second page is showing something like:
http://www.websiteaddress.com/maincategory/men/search/nailpolish/results,19-18
but with a blank page and no results. With JoomlaSef turned off, everyting works all right, but off course that's not the best or most beautiful option.
I've tried with Joomla Sef turned on and VM Sef turned off, and that's also working.

Wrong: with JoomlaSef turned on and VM Sef turned off, the pagination in search results isn't working either.

Besides that, the sitemap (XMap) isn't showing correct either.
I think I'll have to dive into the code/redirects/forum in order to adjust the htaccess-file...

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Lockerbie

#21
See: -websitenameremoved-

Both JoomlaSef and VM Sef are turned offright now. And the sitemap is deactivated for the moment.

Maxim Pishnyak

Works, turn it on now. Could it be tested on unchanged VM and on standard template? Just to be sure.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Lockerbie

#23
Okay, both JoomlaSef and VM Sef are turned on right now. But with this the pagination in search results isn't working.
See: -websitename removed-

And the searchfield on browse-view-page isn't working now either, see:
-websitename removed-

Lockerbie

After enabling Joomla cache everything with search module and pagination in search results seems fine.
There's only a minor thing when using search:
when you've searched for a product name/range, say 'lipgloss', visit page 2 of the results and after that search for another, say 'nailpolish', you end up at page 2 of the new search results. Not that big of a problem, but still a little bit strange.

Unfortunate the sitemap (XMap) still isn't working correct...

Maxim Pishnyak

What 3rd parties do you have? Could you test without template overrides for VM? Ofc VM should have not modified files.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Lockerbie

I found an old thread on the XMap-forum, where some people had the same problems. Someone suggested to deactivate the content-plugin, which worked for him. I've tried that, but no difference.
Only after disabling the virtuemart-plugin, the sitemap is back, in the layout of the site and complete again!
See: http://joomla.vargas.co.cr/en/forum?task=viewtopic&f=2&t=3057&sid=6cefbbc180d63d7acf3b9acbf2ec86ed

skyflyer

Hello,

I have no category items in the right side VM - Category module and can't figure out why. I have created three categories and a couple of product items in them but I can't get the default module on the right to show any of the categories I have created - I have only the head title of the module 'VM - Category'

I can't display the categories in the content area neither even though I made the menu item a vm category layout. All I get in the content is products view without the head title - just to rows of 3 products in them.

When I click on one of the products it gets my to the product detailed view and there is a button in right top position 'Back to: Books' and when I click the button it gets me back to the content and this time the Book category is there and its description on the top too

Does anyone know what could be the issue please?

I attach a screen shot.

Thanks in advance

Mario

[attachment cleanup by admin]