VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: geraldkoo on September 03, 2015, 09:10:56 AM

Title: Search module issue
Post by: geraldkoo on September 03, 2015, 09:10:56 AM
Hi there

i got a question about virtuemart search from the website http://aspac.com.sg/index.php

1) Search under the Category of "Kawasaki pneumatic tools" for KPT-NC-OS, it will not lead you to the product..but just the general Kawasaki page showing all Kawasaki Product. It does not show you the search result at all

2) Now , you go to Homepage and search under "all categories", you will find the Kawasaki KPT-NC-OS is being pop up among the rest of other products in the website. But those products does not show "KPT-NC-OS" at all.

Anyone can help to look into this?
Title: Re: Search module issue
Post by: PRO on September 03, 2015, 13:16:37 PM
what do you have your search settings set to?

product sku checked?
Title: Re: Search module issue
Post by: Studio 42 on September 03, 2015, 16:24:57 PM
Hi,
You have to check in the vm configuration, you can set the search options, if this is a SKU then you have to check SKU option in VM config
Title: Re: Search module issue
Post by: geraldkoo on September 08, 2015, 04:32:52 AM
Quote from: PRO on September 03, 2015, 13:16:37 PM
what do you have your search settings set to?

product sku checked?
yes it is checked.. this is what i checked
Available Search Fields
-Product Name
-Manufacturer Name
-Category Name
-Product Short description
-Product SKU
-Product Description
-Category Description
Title: Re: Search module issue
Post by: PRO on September 08, 2015, 15:25:53 PM
in the search module parameters, do you have "category filter"   checked?

what happens when you use the standard vmart search module?


also, what version of vmart are you using?
Title: Re: Search module issue
Post by: melingmeier on November 05, 2015, 09:07:34 AM
I'm using the standard VM search module and it doesn't find anything. Not a productname, not any word of the description. Do I have to apply keywords for my products so they can be found?
Title: Re: Search module issue
Post by: PRO on November 05, 2015, 10:45:06 AM
Quote from: PRO on September 03, 2015, 13:16:37 PM
what do you have your search settings set to?



?
Title: Re: Search module issue
Post by: melingmeier on November 05, 2015, 11:43:54 AM
Searchfilter category: yes and no (tried both)
No ItemID set
Title: Re: Search module issue
Post by: Studio 42 on November 05, 2015, 12:04:18 PM
Quote from: Studio 42 on September 03, 2015, 16:24:57 PM
Hi,
You have to check in the vm configuration, you can set the search options, if this is a SKU then you have to check SKU option in VM config
Title: Re: Search module issue
Post by: melingmeier on November 05, 2015, 12:44:45 PM
Where in the vm config can I find the search options?
Title: Re: Search module issue
Post by: melingmeier on November 05, 2015, 14:14:06 PM
Now I found it... in product sorting. There are several things selected like product name, description and so on. If I search for the exact name of an item, nothing can be found.
Title: Re: Search module issue
Post by: GJC Web Design on November 05, 2015, 21:58:12 PM
live site?  search term to try?
Title: Re: Search module issue
Post by: melingmeier on November 13, 2015, 16:55:25 PM
It's live now... https://www.eatberlinstore.de/onlineshop/index.php/alle-produkte (https://www.eatberlinstore.de/onlineshop/index.php/alle-produkte)
You can find a search field at the top right and one on the left under the category tree. They both find different things (?!). The searchfield at the top should be a global search, but only find items if you browse in a certain category like "Alle Produkte" (all products). The searchfield on the left nearly doesn't find anything.

One more thing: The searchfield at the top can find the term "Berliner" but not "Berlin". Is it possible to declarate some keywords for a product to increase the finding-rate? Where can I do this?
Title: Re: Search module issue
Post by: GJC Web Design on November 13, 2015, 21:37:53 PM
the one on the left 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">

add keywords in a field you don't display say.. Product Short description .. and enable search for that field

Title: Re: Search module issue
Post by: melingmeier on November 15, 2015, 23:59:49 PM
Thanks for your reply. Where can I set the form method? I checked the module but couldnt find a setting-field...

The "miriam-eva-kebe-living"-entry is very strange. This is the name of one configured manufacturer and you can find it in several URLs where it doesnt belong to. If I see the detailview of a product and click on the manufacturer to open the  manufacturer-product-view a URL like this is shown "/onlineshop/miriam-eva-kebe-living/manufacturer/haus-der-feinen-kost". I have no idea why "miriam-eva..." is mentioned in the URL.
Title: Re: Search module issue
Post by: Studio 42 on November 16, 2015, 01:52:14 AM
Something is not logic 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">
AND :

<input type="hidden" name="option" value="com_virtuemart" />
<input type="hidden" name="view" value="category" />
<input type="hidden" name="virtuemart_category_id" value="<?php echo $category_id?>"/>

Or this sould be a POST method
or remove hidden in double and  use a get

current final link is YOURSHOP/onlineshop/alle-produkte/search?keyword=bailey&limitstart=0&option=com_virtuemart&view=category and is not very SEF/user friendly
Title: Re: Search module issue
Post by: GJC Web Design on November 16, 2015, 13:29:09 PM
there is no setting for 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">

have you manually set the cat id in the module?  if all cats I assume set to 0