Simple VM Search Integration

(1/1)

aboutimage:
I am trying to implement a simple "Virtuemart Only" search in one of the custom modules on a site. The generic site search module is far more than what I need (I don't want to return search results for articles/sections/etc). What I need is a very specific search that when "go" or "enter" is pressed, only returns relevant products from the Virtuemart database.

I'm aware of the Virtuemart Extended Search plugin, and again, this is far more than I need in terms of search results.

What I'd like is to be able to insert a tag into a mod_custom module, but have no idea how to code out the tag. My desired goal is for users to hit the "Submit" button and be directed straight to a VM page with relevant products. Unfortunately, all Google searches seem to to put me right back on track for integrating the default Joomla search module with the VM Extended Search plugin.

I'm guessing I need something like this:

Code:

<form action="administrator/components/com_virtuemart/html/shop.search.php method="get">
  Product Search: <input type="text" name="fname" /><input type="submit" value="Submit" />
</form>

I just get an error trying to directly access that script, so: Any VM gurus know how to code this?

aboutimage:
I figured it out. It's:

Code:

   <div class="virtuemart_advsearch">
     <form name="adv_search" method="post" action="http://www.mywebsite.com">
       <input type="hidden" value="shop.browse" name="page"/>
       <input type="hidden" value="com_virtuemart" name="option"/>
       <input type="hidden" value="9999" name="Itemid"/>
       <input type="text" size="20" name="keyword1" class="inputbox"/>
       <input type="submit" value="Search" name="search" class="button search"/>
     </form>
    </div>
The `<div>` isn't really necessary, but it keeps things neatly divided for now. This is not the cleanest implementation, but it'll do for now.

Navigation

[0] Message Index