VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: info@teldrive.com on November 19, 2015, 17:28:53 PM

Title: strange error in VM_search module v3.012
Post by: info@teldrive.com on November 19, 2015, 17:28:53 PM
I have detected an extrange "0" on right side of search container

<!--BEGIN Search Box -->
<form action="/index.php/en/search" method="get">
<div class="search">
0<input name="keyword" class="inputbox" id="mod_virtuemart_search" style="height:16px;vertical-align :middle;" onfocus="if(this.value=='Search in web....') this.value='';" onblur="if(this.value=='') this.value='Search in web....';" type="text" size="30" maxlength="30" alt="Search" value="Search in web...."></div>
      <input name="limitstart" type="hidden" value="0">
      <input name="option" type="hidden" value="com_virtuemart">
      <input name="view" type="hidden" value="category">
     </form>

I don't know how is it generated I have done some debugging without results on /httpdocs/modules/mod_search/tmpl/defaul.php
<div class="search<?php echo $moduleclass_sfx ?>">
   <form action="<?php echo JRoute::_('index.php');?>" method="post" class="form-inline">
      <?php
         $output = '<label for="mod-search-searchword" class="element-invisible">' . $label . '</label> ';
         $output .= '<input name="searchword" id="mod-search-searchword" maxlength="' . $maxlength . '"  class="inputbox search-query" type="search"' . $width;
         $output .= ' placeholder="' . $text . '" />';

Title: Re: strange error in VM_search module v3.012
Post by: GJC Web Design on November 19, 2015, 17:39:48 PM
your pasted code doesn't match your generated html -- u must be in the wrong file

check over rides etc
Title: Re: strange error in VM_search module v3.012
Post by: Jumbo! on November 24, 2015, 23:02:48 PM
You are checking a wrong layout file. You need to check the following files -

Our template override (if exists): templates/your-template-folder/html/mod_virtuemart_search/default.php
VirtueMart Search Module: modules/mod_virtuemart_search/tmpl/default.php