Hi,
I just updated my site. I am using joomla 3.64.
Virtuemart on my backend indicates version 3.0.13.2
I had messages on my backend to update virtuemart so I did. The changes it made are the followin:
Search now includes images of products which is very nice.
Search field now gets the search button image on the top or bottom. I try changing it from the backend> modules>VirtueMart Search Product but it only gets the image to the top or bottom position of the input field. No left or right! If I put left it renders on the top. If I put right it goes on the bottom.
Any ideas on how to correct this?
I would prefer to have the fa-icon search image like I had before the update. The update changed it back to the standard search png image.
Thanks in advance.
just create an over ride for the module or use the old one from your backup and style it as you want
create \templates\xxxx\html\mod_virtuemart_search\default.php
Thanks for your reply!
If I use the old one then I don't get the product images in the search results. The update includes product images and i like the way that looks.
I can get the fa-icon instead of the default search png image. I can't get any of these two image to appear to the right of the search field.
I'm not sure how to do an override.
This is part of the code from the previous search file.
<div class="search<?php echo $moduleclass_sfx ?>">
<form action="<?php echo JRoute::_('index.php');?>" method="post" >
<?php
$output = '<input name="searchword" id="mod-search-searchword" maxlength="' . $maxlength . '" class="inputbox search-query form-control" type="search" size="' . $width . '"';
$output .= ' placeholder="' . $text . '" />';
if ($button) {
$btn_output = ' <span class="input-group-btn"><button class="button btn btn-primary" onclick="this.form.searchword.focus();"><i class="fa fa-search"></i></button></span>';
Thanks in advance!
https://docs.virtuemart.net/tutorials/templating-layouts/78-introduction-template-system.html