News:

Looking for documentation? Take a look on our wiki

Main Menu

Virtuemart search button image

Started by artstyle1, November 12, 2016, 08:39:05 AM

Previous topic - Next topic

artstyle1

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.

GJC Web Design

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

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

artstyle1

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!

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation