You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Virtuemart 2&3 Products Filtering - Custom Filters

Started by balai, April 09, 2012, 10:49:01 AM

Previous topic - Next topic


Custom Filters is a suite (component/module) for filtering the products of a VM2 shop.

-Filtering using Categories and/or Manufacturers
-Foldable Category tree that works umlimited depth
-Multiple display types of the filters. Drop-down lists, links , radio buttons
-Shows only the active/relative options due to the applied filters. a.k.a filter dependencies
-Layout selection from the existing Category layouts of Virtuemart
-Clear SEF URLs

- Filtering using custom fields and price range
- "Checkboxes" display type
- Configuration of which custom fields will be used as filters and how each one will be displayed.
- Contol of the pages where each filter will be displayed (e.g. Display other filters but  not the catgories filter in a category page)
- Conditional display of custom field filters. E.g if a category or  a Manufacturer is selected.
- AJAX for the module and the results loading

You can check the product here:


this mod is great, but i have one question. howc can i change words 'Any category' in drop box? i want to translate it to other language


You have to tanslate or change the language strings the same way you are doing it for any extension.

Open the file: language\en-GB\en-GB.mod_cf_filtering.ini

and change the: 


The new version has also price range filtering.
We are offering 2 options for the price range filtering. It can be done using text boxes or a slider or both.

Also its the only price filtering in the market which takes into account the shop's global tax rules, the price overrides and the prices in multiple currencies.

Here are some screenshots of the new version:

Here there are the details of the product:



This is a cool extension, thanks.  It solved some problems for me.

Unfortunately, it created another:

In the categories view (default.php) I added the 'Add to Cart' Button.  The button shows up.  When I click on it, the product isn't added to the cart.  The page redirects to the shopping cart page, but with no products in it.

Could you please help me to fix this?

Removes Joomla Frustrations


Possibly the js file which used for adding the product to the cart is not loaded in the results page.

Please use our support for that. It is a hack to the core so it will work with minor modifications


Wow, I solved it.  I'm so impressed, because I'm nowhere near being a programmer or hacker.  (OK, my brother who is a serious programmer with degrees and stuff gave me some advice and pointers.  Another site that gave me this clue was

What I did was to look at the normal category layout page's source code.  There I saw that some javascript files load.  On the filter pages, where the 'Add to Cart' functions doesn't work, those javascript files are absent.

So I hard coded the path to these files into my template's <head> tag.

And it works like a dream. 

Here are the lines I added to my template:
<script src="/erik/components/com_virtuemart/assets//js/jquery.noConflict.js" type="text/javascript"></script>
  <script src="/erik/components/com_virtuemart/assets//js/facebox.js" type="text/javascript"></script>
  <script src="/erik/components/com_virtuemart/assets//js/vmprices.js" type="text/javascript"></script>
  <script type="text/javascript">
vmSiteurl = 'http://localhost/erik/'; ;
vmLang = ""
vmCartText = ' was added to your cart.' ;
vmCartError = 'There was an error while updating your cart.' ;
loadingImage = '/erik/components/com_virtuemart/assets/images/facebox/loading.gif' ;
closeImage = '/erik/components/com_virtuemart/assets/images/facebox/closelabel.png' ;
Virtuemart.addtocart_popup = '0' ;
faceboxHtml = '<div id="facebox" style="display:none;"><div class="popup"><div class="content"></div> <a href="#" class="close"></a></div></div>'  ;

    window.addEvent('domready', function() {

      SqueezeBox.assign($$('a.modal'), {
        parse: 'rel'

jQuery(document).ready(function () {
    function() { jQuery(this).find('.orderlist').stop().show()},
    function() { jQuery(this).find('.orderlist').stop().hide()}


Removes Joomla Frustrations



You can do that also from within the :components\com_customfilters\views\products\view.html.php

in the function _prepareDocument
All the files are called from that function


Cool Stuff, thanks balai.

I'll try that.

Hopefully you're turning me into a 'real' hacker.  Uhm... rather coder. ;)

Removes Joomla Frustrations


Hello, when I try to install the free version, I get this error message:

Error! Could not find a Joomla! XML setup file in the package.
Path does not have a valid package.

I followed instructinos, opening the .zip and trying to upload either "" or "" and both give me the error. Also, both do have an XML file when I open up the .zip.

I'm in VM Verion 2.0.10 and Joomla Version 1.5.26

Any help would be very appreciated. Thank you!


jsinger it says on the product page "It works with VirtueMart 2.0x and Joomla 2.5.x ".

There is no point in developing extensions for Joomla 1.5 as it is no longer supported by
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum


Makes sense, thank you!

Do you know if that XML error message that I bolded above indicates that it's a version issue? Just wondering because I have tried installing another totally different module and got that message for that, too.

Maxim Pishnyak


I'm sorry, I already bought your awesome solution, but
neither on
nor in current forum thread
I can't see now child product filtering option.
So your Custom Filters able or not able to fitler child products?
Joomla 2.5.11
VM 2.0.20

Ticket with the same question has been sent to Break Design support.
You can support Community by voting for Project on the JED
Join us at



I have replied to your ticket.
This is a setting in the menu item
Please use our ticket for your support

Also the manual you refer concerns only the free version.
You will find complete pdf manuals for the PRO version in our downloads area

Maxim Pishnyak


First of all, thank you again for your fast response. As regular VM forum visitor and other VM related websites visitor too I'd like to find information rather online then offline. So I simply forgot about pdfs that I had.

But ... Balai you're too modest as developer.

Why you do not say your potential customers that your solution could filter child products?

So for anyone interested in this Custom Filter I'm saying


Have a nice day
You can support Community by voting for Project on the JED
Join us at