Search module issue

GK User
Wed Nov 18, 2015 8:51 pm
In the Storefront Template we have two search modules. One at the top of the page and one under the category tree in category-view. I can't really create usefull search-results so I asked in VM forum and they answer the following:

the one at category-view has its action url as
<form method="get" action="/onlineshop/miriam-eva-kebe-living/search">... why?
the top one
<form method="get" action="/onlineshop/alle-produkte/search">
...
there is no setting in Joomla to change it... look in the template of the search module to try and figure why it takes this url
it is normally something like

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

Is it possible to fix the search to the categroy "alle-produkte (/onlineshop/alle-produkte/) so it always searches all my products?
User avatar
Senior Boarder

teitbite
Sun Nov 22, 2015 12:21 pm
Hi

I do not know what 2 searches You have in mind. Both should be made with a virtuemart search module and a search result page for virtuemart should be created in one of the menus so search will have a page to be displayed one. That's my guess. I cannot tell for sure without seeing it in action.
User avatar
Moderator

GK User
Tue Nov 24, 2015 3:22 pm
I forgot to post the link, so here it is: https://www.eatberlinstore.de/onlineshop/alle-produkte
The two search modules I mentioned were installed with the quickstart package. The search module in the top only searches in the category you are currently in. If you click on menu-link pesto it only searches in pesto. I would it like to work as a globalsearch, doesnt matter where you are on the website.

The searchmodule on the left side doesnt work at all...
User avatar
Senior Boarder

teitbite
Fri Nov 27, 2015 8:15 pm
Hi

Now I understand, but I'm afraid I'm not Virtuemart expert to answer that question. You should ask this on their forum.

PS: Are You sure about this problem ? I'm looking into code of search module and and cannot see anything which can be restricting the results to single category.
User avatar
Moderator


cron