Author Topic: Search and Manufacturer modules: no CSS module class suffix field  (Read 2255 times)

simbus82

  • Jr. Member
  • **
  • Posts: 109
    • Simbus82 Web & Tech
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

  • Jr. Member
  • **
  • Posts: 109
    • Simbus82 Web & Tech
Re: Search and Manufacturer modules: no CSS module class suffix field
« Reply #1 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?
Joomla! 2.5.16 & VM 2.0.24b

gabriel11

  • Beginner
  • *
  • Posts: 1
Re: Search and Manufacturer modules: no CSS module class suffix field
« Reply #2 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:
Code: [Select]
<?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
Code: [Select]
div .moduletablevmShopSearch
{

}
to your template css.

capricornio

  • Jr. Member
  • **
  • Posts: 56
Re: Search and Manufacturer modules: no CSS module class suffix field
« Reply #3 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

zanardi

  • Contributing Developer
  • Full Member
  • *
  • Posts: 878
    • GiBiLogic
Re: Search and Manufacturer modules: no CSS module class suffix field
« Reply #4 on: July 17, 2012, 17:25:08 pm »
I confirm this bug and I confirm that the proposed solution works fine.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter