Search and Manufacturer modules: no CSS module class suffix field

Started by simbus82, March 09, 2012, 17:52:38 PM

Previous topic - Next topic

simbus82

In the Virtuemart Seach Module and Manufacturer there is not a field to specify a CSS class suffix.
Joomla! 2.5.16 & VM 2.0.24b

simbus82

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?
Joomla! 2.5.16 & VM 2.0.24b

gabriel11

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.

capricornio

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

zanardi

I confirm this bug and I confirm that the proposed solution works fine.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter