Author Topic: Tyre Seek over a Modified Search Module  (Read 3062 times)

amwd

  • Beginner
  • *
  • Posts: 2
Tyre Seek over a Modified Search Module
« on: April 03, 2009, 00:00:34 am »
Hi,

i want to build a Tyre Shop with VirtueMart. I have tried to modify the mod_vm_search module with some select HTML-Tags and put it in the normal search-function of VirtueMart.

I know the Searchfunction only seek over the Producttitles but i have all Informations that the Function need in the Producttitle.

Ok i tought if i concat the Select-Vars and put it in the URL it will be work.

And it work but only on the Second time i click on the seek button. The First Time they give me all Products of the Shop.

I were very happy if someone give me a answer why this Module only work on the Second time.

Thank you in advance
<?php
if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
/**
* www.virtuemart.net
*/

// Load the virtuemart main parse code
if( file_exists(dirname(__FILE__).'/../../components/com_virtuemart/virtuemart_parser.php' )) {
   require_once( dirname(__FILE__).'/../../components/com_virtuemart/virtuemart_parser.php' );
} else {
   require_once( dirname(__FILE__).'/../components/com_virtuemart/virtuemart_parser.php' );
}

global $VM_LANG, $mm_action_url, $sess;

?>
<!--BEGIN Search Box -->
<form  method="post" action="<?php $sess->purl( $mm_action_url."index.php?"."keyword=".$_POST["Querschnitt"]."%2F".$_POST["Breite"]."+".$_POST["Groesse"]."&page=shop.browse" ) ?>">

   <p><label for="keyword"><?php echo "Tire Seek" ?></label></p>
   <p>
        <select id="profile" name="profile">
          <option value="135">135</option>
          <option value="155">155</option>
         </select>
        <select id="broadness" name="broadness">
          <option value="40">40</option>
          <option value="50">50</option>
         </select>
      <select id="size" name="size">
        <option value="R15">R15</option>
        <option value="R16">R16</option>
                </select>
      <input class="button" type="submit" value="seek" />
   </p>
</form>
<!-- End Search Box -->

szekelyz

  • Beginner
  • *
  • Posts: 6
Re: Tyre Seek over a Modified Search Module
« Reply #1 on: May 17, 2010, 03:43:15 am »
Hi!
Did you resolved the tire selector or seeker modul? I am interested in too!

Please let me know if you have any news regarding to this module.

Regards
Zsolt