News:

Looking for documentation? Take a look on our wiki

Main Menu

Virtuemart 2&3 Products Filtering - Custom Filters

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

Previous topic - Next topic

balai

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

-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:
https://breakdesigns.net/extensions/joomla/custom-filters

uookie

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

balai

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: 
MOD_CF_ANY_HEADER="Any %s"
to
MOD_CF_ANY_HEADER="YOUR TRANSLATION %s"

balai

#3
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:
http://breakdesigns.net/extensions/custom-filters

jfdutoit

Hi,

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?

Francois
Removes Joomla Frustrations
http://www.ezywebsites.co.za

balai

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

jfdutoit

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 http://www.katcode.com/modifying-the-head-section-in-your-joomla-page/)

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.initialize({});
      SqueezeBox.assign($$('a.modal'), {
        parse: 'rel'
      });
    });

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

  </script>

Francois
Removes Joomla Frustrations
http://www.ezywebsites.co.za

balai

Great!

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

jfdutoit

Cool Stuff, thanks balai.

I'll try that.

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

Francois
Removes Joomla Frustrations
http://www.ezywebsites.co.za

jsinger777

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 "com_customfilters.zip" or "mod_cf_filtering.zip" 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!

jenkinhill

#10
jsinger it says on the product page "It works with VirtueMart 2.0x and Joomla 2.5.x ". http://breakdesigns.net/extensions/custom-filters

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

Retired from forum life November 2023

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

jsinger777

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

Hello!

I'm sorry, I already bought your awesome solution, but
neither on http://www.breakdesigns.net/extensions/custom-filters/custom-filters-manual
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?

CustomFilters_PRO_installer_v1.8.2.zip
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
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

balai

#13
Hi

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

Hello

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


CHILD PRODUCTS COULD BE FILTERED BY THIS FILTER (PRO version)

Have a nice day
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart