VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: simbus82 on March 09, 2012, 17:52:38 PM

Title: Search and Manufacturer modules: no CSS module class suffix field
Post by: simbus82 on March 09, 2012, 17:52:38 PM
In the Virtuemart Seach Module and Manufacturer there is not a field to specify a CSS class suffix.
Title: Re: Search and Manufacturer modules: no CSS module class suffix field
Post by: simbus82 on March 12, 2012, 09:52:13 AM
In VM 2.0.2 with Joomla! 2.5.2

Without this css suffix is impossible to do some fine tuning to the graphic of these modules.

The backend of the modules included in VM AIO is different from module to module: can you uniform the admin for these modules?
Title: Re: Search and Manufacturer modules: no CSS module class suffix field
Post by: gabriel11 on May 29, 2012, 23:29:56 PM
This seems like a bug to me in virtuemart's search module:

I hacked it myself like this: (Joomla 2.5.4, Virtuemart 2.0.6)

Go to /modules/mod_virtuemart_search/mod_virtuemart_search.php

the 'hacked' beginning of the file should look like this:
<?php // no direct access
defined('_JEXEC') or die('Restricted access'); 

//Custom Hack(might get lost on next virtuemart-update!)
//appends virtuemart specific css to module, so this search module is stylable!
$document JFactory::getDocument();
$document->addScriptDeclaration("
jQuery(document).ready(function($) {
$('div.search').parent().parent('.moduletable').attr('class', 'moduletablevmShopSearch');
})
"
);
?>


then u can add
div .moduletablevmShopSearch
{

}

to your template css.
Title: Re: Search and Manufacturer modules: no CSS module class suffix field
Post by: capricornio on June 25, 2012, 22:20:18 PM
Found out it has to do with a bug in the mod_virtuemart_search.xml file.

On line 81 just replace
       <fieldset group="advanced">
with
       <fieldset name="advanced">

Then you have the option to set the correct module class in the backend.

Hope the Development team will include this solution in the next release
Title: Re: Search and Manufacturer modules: no CSS module class suffix field
Post by: zanardi on July 17, 2012, 17:25:08 PM
I confirm this bug and I confirm that the proposed solution works fine.