Note that there are some explanatory texts on larger screens.

plurals
  1. POVirtueMart Search Frustrations
    primarykey
    data
    text
    <p>I am trying to implement a simple "Virtuemart Only" search in one of the custom modules on a site. What I'd like is to be able to insert the search tags into an existing table in a <strong>mod_custom</strong> module. The problem is, I have no idea how to code an <code>&lt;INPUT&gt;</code> tag to work with VM.</p> <p>Every Google search I've done returns solutions centered on either (1) installing the VM Advanced Search module, (2) using the basic VM Search module, or (3) using Modules Anywhere to load one of the previously mentioned modules into an existing space. Problem is, the site I'm working on doesn't need another module taking up space. It really just needs a simple <code>&lt;INPUT&gt;</code> field in a particular location that sends queries to VM.</p> <p>Edit: To clarify my purpose, here is a partial of the source code I want to insert the search into:</p> <pre><code>&lt;table id="product-search" class="product-search"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;td&gt;&lt;span class="search-title"&gt;Order Online&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;img src="shopping-cart.png" /&gt;&lt;/td&gt; &lt;td&gt;&lt;**SEARCH CODE HERE**&gt;&lt;/td&gt; &lt;/tr&gt; etc... etc... </code></pre> <p>So you can see, it's just a simple table with some icons, phone numbers, etc., with the search <code>&lt;input&gt;</code> (hopefully) inserted in the middle of it.</p> <p>I'm guessing I just need to add some stupidly simple code like:</p> <pre><code>&lt;form action="administrator/components/com_virtuemart/html/shop.search.php" method="get"&gt; Product Search: &lt;input type="text" name="fname" /&gt;&lt;input type="submit" value="Submit" /&gt; &lt;/form&gt; </code></pre> <p>Of course, I just get an error trying to directly access that particular script, so I'm wondering: Any VM gurus know how to code this?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload