Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Arjen Bruinning Friend
    #138010

    I have a question:

    Hoe can I change the standard search field in the left menu with the virtuemart search. I punt the virtuemart search in module user 4, but it doesn’t fit nicely. I have a search field but underneath is the seach button.

    Any ideas?

    Kind regards, Arjen

    Anonymous Moderator
    #290851

    Please try with my guide:

    Open mod_virtuemart_search.php file in modulesmod_virtuemart_search folder, at about line 29, find following code:

    [PHP]<!–BEGIN Search Box –>
    <form action=”<?php $sess->purl( $mm_action_url.”index.php?page=shop.browse” ) ?>” method=”post”>

    <p><label for=”keyword”><?php echo $VM_LANG->_(‘PHPSHOP_SEARCH_LBL’) ?></label></p>
    <p>
    <input name=”keyword” type=”text” size=”12″ title=”<?php echo $VM_LANG->_(‘PHPSHOP_SEARCH_TITLE’) ?>” class=”inputbox” id=”keyword” />
    <input class=”button” type=”submit” name=”Search” value=”<?php echo $VM_LANG->_(‘PHPSHOP_SEARCH_TITLE’) ?>” />
    </p>
    </form>
    <!– End Search Box –> [/PHP]

    and change to:

    [PHP]<!–BEGIN Search Box –>
    <form action=”<?php $sess->purl( $mm_action_url.”index.php?page=shop.browse” ) ?>” method=”post”>
    <div class=”search<?php echo $params->get(‘moduleclass_sfx’) ?>”>
    <input name=”keyword” type=”text” size=”12″ title=”<?php echo $VM_LANG->_(‘PHPSHOP_SEARCH_TITLE’) ?>” class=”inputbox” id=”keyword” />
    </div>
    </form>
    <!– End Search Box –> [/PHP]

    Arjen Bruinning Friend
    #290940

    Thank you very much. This is exactly what I want.

    One question: The strange thing is that the search button on the right on the search field doesn’t work anymore? When I fill in a search term and click enter it will show me the results, but I can’t click on the button with the mouse. Any ideas?

    Kind regards, Arjen

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  Arjen Bruinning 15 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum