News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

"0" next to search module

Started by Marga123, November 30, 2012, 23:54:22 PM

Previous topic - Next topic

Marga123

Hi :)
Would someone let me know please
how do I remove the "0" next to the product
module?

Many Thanks and Best Regards
Charles

bytelord

Hello,

You forgot to mention vm2, joomla versions.

This one have been fixed 2 months (i did that fix 30/10). So please go update your vm2 version.
If you have updated version then please check your override for the search module under your template

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

Marga123

Thank for your reply  :)

The 0 still showing

I'm using joomla 2.5.6
Virtuemart version 2.0.14

This is my override for the search module

Quote<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<!--BEGIN Search Box -->
<form action="<?php echo JRoute::_('index.php?option=com_virtuemart&view=category&search=true&limitstart=0&virtuemart_category_id='.$category_id ); ?>" method="get">
<div class="search<?php echo $params->get('moduleclass_sfx'); ?>">
<?php $output = '<input style="height:16px;vertical-align :middle;" name="keyword" id="mod_virtuemart_search" maxlength="'.$maxlength.'" alt="'.$button_text.'" class="inputbox'.$moduleclass_sfx.'" type="text" size="'.$width.'" value="'.$text.'"  onblur="if(this.value==\'\') this.value=\''.$text.'\';" onfocus="if(this.value==\''.$text.'\') this.value=\'\';" />';
$image = JURI::base().'components/com_virtuemart/assets/images/vmgeneral/search.png' ;

         if ($button) :
             if ($imagebutton) :
                 $button = '<input style="vertical-align :middle;height:16px;border: 1px solid #CCC;" type="image" value="'.$button_text.'" class="button'.$moduleclass_sfx.'" src="'.$image.'" onclick="this.form.keyword.focus();"/>';
             else :
                 $button = '<input type="submit" value="'.$button_text.'" class="btn btn-info'.$moduleclass_sfx.'" onclick="this.form.keyword.focus();"/>';
             endif;
         endif;

         switch ($button_pos) :
             case 'top' :
                $button = $button.'<br />';
                $output = $button.$output;
                break;

             case 'bottom' :
                $button = '<br />'.$button;
                $output = $output.$button;
                break;

             case 'right' :
                $output = $output.$button;
                break;

             case 'left' :
             default :
                $output = $button.$output;
                break;
         endswitch;

         echo $output;
?>
</div>
      <input type="hidden" name="limitstart" value="0" />
      <input type="hidden" name="option" value="com_virtuemart" />
      <input type="hidden" name="view" value="category" />
     </form>

<!-- End Search Box -->

bytelord

Hello,

Compare it to the new one code and make the appropriated changes.

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!