VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: mark.cylons on July 10, 2014, 22:40:50 PM

Title: VM search module conflict with new categories
Post by: mark.cylons on July 10, 2014, 22:40:50 PM
I am using virtuemart 2.0.26d and joomla 2.5.17

Everytime when I add a new Virtuemart category my search module stops working. It changes link:

index.php/hr/vm-search/search?keyword=proba&limitstart=0&option=com_virtuemart&view=category&plugin_search=1   to
index.php/hr/categories/search?keyword=proba&limitstart=0&option=com_virtuemart&view=category&plugin_search=1.

From the link I can see that it changes /vm-search/ to /categories/.
Everytime I have to start Repair Database from my hosting cpanel. And then I need to add products that are not included in my backup database. Is there any chance that I can change that link in database and where?
Title: Re: VM search module conflict with new categories
Post by: GJC Web Design on July 11, 2014, 11:12:12 AM
It is just a POST to the category view in the module

<form action="<?php echo JRoute::_('index.php?option=com_virtuemart&view=category&search=true&limitstart=0&virtuemart_category_id='.$category_id ); ?>" method="get">

if you test with the JPoute remove does it work/not break?

e.g.

<form action="<?php echo 'index.php?option=com_virtuemart&view=category&search=true&limitstart=0&virtuemart_category_id='.$category_id ?>" method="get">

must be related to a menu item (or lack of) somewhere for the root cat view?
Title: Re: VM search module conflict with new categories
Post by: mark.cylons on July 11, 2014, 13:27:40 PM
Thanks for answer, but unfortunately it did not work. I tried to change listed link in file /public_html/modules/mod_virtuemart_search/tmpl/default.php and there is the same problem again. When I write some term, it shows me a few items in quick view for that root words (in my case it shows 6 items), but when I press enter so I can see all the results with that root words it shows only categories. Why is that?
Title: Re: VM search module conflict with new categories
Post by: GJC Web Design on July 11, 2014, 14:08:04 PM
quick view? 
Title: Re: VM search module conflict with new categories
Post by: mark.cylons on July 11, 2014, 14:54:15 PM
I mean when I write ex. dress it shows me few dresses below search module, but when I press Enter it does not show me dresses but all categories. Im my language dress is haljiina.
(http://i1286.photobucket.com/albums/a607/mcylons/search_zpse4b3a585.jpg) (http://s1286.photobucket.com/user/mcylons/media/search_zpse4b3a585.jpg.html)
Title: Re: VM search module conflict with new categories
Post by: GJC Web Design on July 11, 2014, 17:56:45 PM
this isn't the standard VM search module - contact who ever sold you this...
Title: Re: VM search module conflict with new categories
Post by: mark.cylons on July 11, 2014, 18:53:07 PM
Thanks for your help and thank you for your time. I figured out that I have installed VM Search Autocomplete. I will contact them for support!