VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: mark R on February 07, 2012, 00:37:25 AM

Title: Search Results - which template file?
Post by: mark R on February 07, 2012, 00:37:25 AM
Hi all,

I would like to customise my product search results for VM2.

could anyone advise which view file to edit to change the search results page.
(ie i do not want the categories at the top of the search page)

Many thanks
Mark
Title: Re: Search Results - which template file?
Post by: PRO on February 07, 2012, 00:57:24 AM
turn off the categories in the search configuration
Title: Re: Search Results - which template file?
Post by: mark R on February 07, 2012, 08:42:45 AM
Many thanks banquet

But which file is the template files would like to change the h tag for the product names in the search results

Thanks again.
Title: Re: Search Results - which template file?
Post by: PRO on February 07, 2012, 13:11:17 PM
look at the url.

Its "category" /tmpl/default.php   I believe
Title: Re: Search Results - which template file?
Post by: 100gods on February 09, 2012, 15:38:12 PM
I am using the default VM search tool .. But whenever I a query is executed, it displays "0" results.

Please advise. Thanks.
Title: Re: Search Results - which template file?
Post by: PRO on February 09, 2012, 16:37:52 PM
Quote from: 100gods on February 09, 2012, 15:38:12 PM
I am using the default VM search tool .. But whenever I a query is executed, it displays "0" results.

Please advise. Thanks.

what do you have set for "search fields" in backend configuration
?
Title: Re: Search Results - which template file?
Post by: 100gods on February 09, 2012, 17:26:00 PM
what do you have set for "search fields" in backend configuration ?
Well, I am not too sure ..

If it answers - I have activated the following plugins:
Search - Categories
Search - Contacts
Search - Content
Search - Newsfeeds
Search - Weblinks

Is there some particular way by which I need to configure the search fields? Please suggest.

Thanks.
Title: Re: Search Results - which template file?
Post by: PRO on February 09, 2012, 19:17:59 PM
this
Search - Categories

will return the categories when you search
Title: Re: Search Results - which template file?
Post by: 100gods on February 10, 2012, 16:38:09 PM
Hello Banquet,

I disabled the rest of the plugins (content, contacts, weblinks, etc) - but still the search did not display any results !

Please suggest ! Thanks..
Title: Re: Search Results - which template file?
Post by: PRO on February 10, 2012, 17:30:12 PM
IN YOUR VIRTUEMART  configuration. THATS joomla search
Title: Re: Search Results - which template file?
Post by: 100gods on February 10, 2012, 17:48:13 PM
Quote from: BanquetTables.pro on February 10, 2012, 17:30:12 PM
IN YOUR VIRTUEMART  configuration. THATS joomla search

Oh !!
In that case, please suggest how to do this then?
Title: Re: Search Results - which template file?
Post by: PRO on February 10, 2012, 18:55:06 PM
Quote from: BanquetTables.pro on February 10, 2012, 17:30:12 PM
IN YOUR VIRTUEMART  configuration. THATS joomla search


have you looked in the vmart configuration? "Product Order Settings" tab
Title: Re: Search Results - which template file?
Post by: 100gods on February 10, 2012, 19:26:30 PM
Well, my "Available search fields" includes product names, short descn, category name, etc..
However, the search only shows results from Joomla content .. Any other string results in "0" search results !!
Seems VM data is not being screened.

Read on couple of forums, that one needs to use (some) plugin which includes VM data with Joomla content in searches.. If this is the case, can you please suggest any such plugin ?

Please help !!
Title: Re: Search Results - which template file?
Post by: PRO on February 11, 2012, 13:36:19 PM
then u need to use the vmart search module, NOT the joomla one
Title: Re: Search Results - which template file?
Post by: Margriet on February 11, 2012, 17:54:11 PM
Maybe I don't understand you, but I've disabled all search fields exept Product Name and search results are still showing underneath categories.
Default Joomla 2.5.1 installation with no other extensions, default template and default VM 2.0.1f installation with sample data.
(http://<a%20href='http://postimage.org/image/bxr3bnp35/'%20target='_blank'><img%20src='http://s16.postimage.org/bxr3bnp35/search.jpg'%20border='0'%20alt="search"%20/></a>)
http://preview.tinyurl.com/7ofv672 (http://preview.tinyurl.com/7ofv672)
Title: Re: Search Results - which template file?
Post by: PRO on February 12, 2012, 14:31:37 PM
create a joomla menu item to the defaulkt layout, and see what happens
Title: Re: Search Results - which template file?
Post by: Margriet on February 12, 2012, 17:34:44 PM
Done, no change.
Title: Re: Search Results - which template file?
Post by: alloutdoor on February 15, 2012, 00:11:44 AM
I was looking into this as well, have you found any solution to your problem?
Title: Re: Search Results - which template file?
Post by: Margriet on February 16, 2012, 15:20:33 PM
@100gods: You should use the vm module search en not the joomla core search!
Title: Re: Search Results - which template file?
Post by: mark R on February 17, 2012, 01:05:34 AM
I have found a quick solution....

I have set my default shop category template to A (I have then edited the template and removed the category listing)
I have then pointed my product categories to Category template B (copy of A before editing)

Hope it makes sense...

Sent from my Transformer TF101 using Tapatalk
Title: Re: Search Results - which template file?
Post by: Knechtruprecht on February 18, 2012, 20:10:02 PM
@mark R

not realy. Did you mean you make a copy from default_categories.php. then you have default_categories_a.php and default_categories_b.php.
Now you deleted the categorie part from default_categories_a.php and you set in the backend at the virtuemart standart settings default_categories_a.php as standart for your startpage.
But what did you do with the default_categoires_b.php?
In my shop i want as first page an overview of all categories.
Can you tell me how i can do this when i have changed the default_categories_a.php?
Which type of menu i have to take?

Or can anyone tell me how i can take an other template for the search results?
Title: Re: Search Results - which template file?
Post by: Margriet on February 18, 2012, 20:29:54 PM
Do we really want to do this? I think this issue should be resolved by VM developers.