Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Tips, Tricks & Tutorials
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 3rd, 2011, 03:19 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default Creating filters that do the work of categories

I've noticed a lot of members creating categories that do the work of filters. Below is an example of what I mean where each line is its own category:

Sunglasses
-- Brand
---- Frogskins
---- Oakley
---- Ray Ban

Sunglasses
-- Price Range
---- $50 - $75
---- $75 - $100
---- $100 - $200

Sunglasses
-- Merchant
---- REI
---- Sunglass Hut
---- Zappos

Sunglasses
-- Color
---- Black
---- Green
---- Blue


In this example Brand, Price, Merchant and Color are all categories but are being used as category filters for the parent category Sunglasses.

So what's the big deal? It's only 20 categories... But consider this real example borrowed with permission from a Datafeedr member:

Sunglasses
-- Mens
---- Antix
---- Conduct
---- Crosshair
---- Dispatch
---- Fives
---- Flak Jacket
---- Frogskins
---- Flak Jacket XLJ
---- Fuel Cell
---- Gascan
---- Half Jacket
---- Half Wire
---- Hijinx
---- Holbrook
---- Ice Pick
---- Inmate
---- Jawbone
---- Juliet
---- Jupiter
---- M Frame
---- Minute
---- Monster Dog
---- Nanowire
---- O Rokr Pro
---- Oil Drum
---- Oil Rig
---- Pit Boss
---- Probation
---- Radar
---- Scalpel
---- Sideways
---- Splinter
---- Split Jacket
---- Straight Jacket
---- Thump
---- Tightrope
---- Water Jacket
---- Whisker
---- X-Squared
-- Ladies
---- Commit
---- Abandon
---- Compulsive
---- Correspondent
---- Cover Story
---- Dangerous
---- Deception
---- Discreet
---- Embrace
---- Encounter
---- Enduring
---- Forsake
---- Hinder
---- Impatient
---- Liv
---- Radar
---- Ravishing
---- Restless
---- Taken
---- Trouble


That's 59 categories more than actually needed to be created.

So why is it not a good idea to use categories as filters?

1. It involves lots of duplicate work, creating hundreds of categories and performing just as many searches. Not to mention inputting category titles, descriptions and meta info.

2. But maybe more importantly, it's very hard to maintain. If a merchant modifies their product information just a little, you might end up with too many products you don't want in your categories or with no products at all. If you've created a category for every filter, you would have to edit every single saved search. Ugh!

My proposed solution is to use filters instead of categories. Let's take the 62 category example I mentioned above. In that case, I would have 3 categories and handle the rest of the organization in filters.

Here's how my categories would be structured:

Sunglasses
-- Men's
-- Women's


That's it! Let me show you how to do this.

Step 1

Create the 3 categories and add products to the Men's and Women's categories.





Step 2

Next we are going to create 2 different brand filter widgets. I'm creating 2 different brand filters because I'm guessing that some brands are only for women and some brands are only for men. Plus, it's a useful thing to learn for building other filters.

Go to The Factory > Your Store > VIEWS > WIDGETS > Add a new view

In the new view pop-up box, fill it in like this:



Step 3

Once you've created the new view, you will add a Text module to the view and fill it in with your brands. Here's what my Men's sunglasses brands might be:

HTML Code:
<ul>
<?php if (@$_GET['brand']) { ?>

  <li><a href="[server.url type='fullpage' query='-brand']">[X] Remove brand filter</a></li>

<?php } else { ?>

  <li><a href="[server.url type='fullpage' query='brand=Airlock']">Airlock</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Arnette']">Arnette</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Bolle']">Bolle</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Calvin Klein']">Calvin Klein</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Carrera']">Carrera</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Diesel']">Diesel</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Emporio Armani']">Emporio Armani</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Fatheadz']">Fatheadz</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Giorgio Armani']">Giorgio Armani</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Guess']">Guess</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Gunnar']">Gunnar</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Harley Davidson']">Harley Davidson</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Hugo Boss']">Hugo Boss</a></li>
  <li><a href="[server.url type='fullpage' query='brand=IronMan']">IronMan</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Liberty Sport']">Liberty Sport</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Nautica']">Nautica</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Nike']">Nike</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Oakley']">Oakley</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Prada']">Prada</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Ray-Ban']">Ray-Ban</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Silhouette']">Silhouette</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Skechers']">Skechers</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Smith']">Smith</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Spy']">Spy</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Tag Heuer']">Tag Heuer</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Versace']">Versace</a></li>

<?php } ?>
</ul>
What's the PHP for? Basically, the PHP allows us to see if a brand has already been selected and gives the user an option to "unselect" the brand. Otherwise, once the brand is selected, it's hard to unselect it.

Step 4

Now let's set up the Women's brand filter like this:



Step 5

And paste in the brands for women:

HTML Code:
<ul>
<?php if (@$_GET['brand']) { ?>

  <li><a href="[server.url type='fullpage' query='-brand']">[X] Remove brand filter</a></li>

<?php } else { ?>

  <li><a href="[server.url type='fullpage' query='brand=Anne Klein']">Anne Klein</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Baby Phat']">Baby Phat</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Banana Republic']">Banana Republic</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Benetton']">Benetton</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Bulgari']">Bulgari</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Calvin Klein']">Calvin Klein</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Carrera']">Carrera</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Christian Dior']">Christian Dior</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Dior']">Dior</a></li>
  <li><a href="[server.url type='fullpage' query='brand=DKNY']">DKNY</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Dolce %26 Gabbana']">Dolce &amp; Gabbana</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Fossil']">Fossil</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Hugo Boss']">Hugo Boss</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Modo']">Modo</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Phat Farm']">Phat Farm</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Rodeo']">Rodeo</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Tom Ford']">Tom Ford</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Yves Saint Laurent']">Yves Saint Laurent</a></li>

<?php } ?>
</ul>
One thing to notice here is the Dolce & Gabbana brand. Here we have a special character in the name so we need to escape it by using query='brand=Dolce %26 Gabbana'. That will prevent the ampersand from acting as a parameter separator.

Step 6

Just for fun, I'm going to add a few more filters to really make the navigation powerful. In the following steps, I will add a price filter, merchant filter, keyword (in this case color) filter and a tags (in this case feature) filter.

A picture is worth a 1,000 words and with that... here are some screenshots to show you how I've set up those filters:











Step 7

Now, the last step we need to take is hide the new filters on all pages except on category pages. Additionally, we need to only show men's brands in the Men's category and women's brands in the Women's category. To do all of this hiding and showing, I will use the Widget Context plugin: http://wordpress.org/extend/plugins/widget-context/ You should install this plugin.

Step 8

Once you've updated your store on your blog so that the new views information is available and you've installed and activated Widget Context, you'll need to go to Appearance > Widgets and add the following Datafeedr widgets to your sidebar:
  • Categories
  • Feature Filter
  • Price Filter
  • Merchant Filter
  • Color Filter
  • Men Sunglasses Brand Filter
  • Women Sunglasses Brand Filter

Step 9

Now you need to configure the widget contexts.

Categories - Display on all pages.
Feature Filter, Price Filter, Merchant Filter & Color Filter - "Show on selected" and paste the appropriate URLs into the textarea. Here's an example of the merchant filter:



Men Sunglasses Brand Filter - "Show on selected" and only the men's category URL
Women Sunglasses Brand Filter - "Show on selected" and only the women's category URL



Step 10

Now we need to take care of our <head> info. In this example, I'm going to tweak the <title> tags based on the query string.



In the <head> area I will do something like this for the title:



Basically, it says if a filter has been chosen, display its information in the title. Here's the code for that:

HTML Code:
<title>
  [store.if word="on"][store.get param="word"] | [/store.if]
  [store.if tags="on"][store.get param="tags"] | [/store.if]
  [store.if price="on"]Price is [store.get param="price"] | [/store.if]
  [store.if brand="on"][store.get param="brand"] | [/store.if]
  [store.if merchant="on"][store.get param="merchant"] | [/store.if]
  [category.name] |
</title>
<meta name="description" content="[category.description]" />
<meta name="keywords" content="[category.keywords]" />
Step 11

Now, let's fix the title of the category that appears on the page:



In the template area, I will do something like this:



It's just a modification of what I used in the <title> tags above. Here's the code I used:

HTML Code:
<h2>  
  [category.name]
  [store.if brand="on"] by [store.get param="brand"][/store.if]
  [store.if merchant="on"] sold by [store.get param="merchant"][/store.if]
  [store.if price="on"] priced [store.get param="price"][/store.if]
</h2>
Step 12

Now that we've modified a view, update your store and let's check it out!

STORE HOMEPAGE



PARENT CATEGORY PAGE



MEN'S CATEGORY



WITH BRAND SELECTED



WITH BRAND & COLOR SELECTED



WITH BRAND, COLOR & PRICE SELECTED



WITH BRAND, COLOR, PRICE & MERCHANT SELECTED



WOMEN'S CATEGORY WITH FEATURE & PRICE SELECTED



Hope this helps speed up your store creation!

Eric
  #2  
Old February 3rd, 2011, 03:26 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Here are the code snippets I used in my views:

Price Filter Widget:

HTML Code:
<ul>
<?php if (@$_GET['price']) { ?>

  <li><a href="[server.url type='fullpage' query='-price']">[X] Remove price filter</a></li>

<?php } else { ?>

  <li><a href="[server.url type='fullpage' query='price=-150']">Less than 150</a></li>
  <li><a href="[server.url type='fullpage' query='price=150-300']">150 ~ 300</a></li>
  <li><a href="[server.url type='fullpage' query='price=300-550']">300 ~ 550</a></li>
  <li><a href="[server.url type='fullpage' query='price=550-']">More than 550</a></li>

<?php } ?>
</ul>
Merchant Filter Widget:

HTML Code:
<ul>
<?php if (@$_GET['merchant']) { ?>

  <li><a href="[server.url type='fullpage' query='-merchant']">[X] Remove merchant filter</a></li>

<?php } else { ?>

  <li><a href="[server.url type='fullpage' query='merchant=FramesDirect.com']">FramesDirect.com</a></li>
  <li><a href="[server.url type='fullpage' query='merchant=John Lewis Partnership PLC']">John Lewis Partnership PLC</a></li>
  <li><a href="[server.url type='fullpage' query='merchant=SunglassesUK.com']">SunglassesUK.com</a></li>

<?php } ?>
</ul>
Color Filter Widget:

HTML Code:
<ul>
<?php if (@$_GET['word']) { ?>

  <li><a href="[server.url type='fullpage' query='-word']">[X] Remove color filter</a></li>

<?php } else { ?>

  <li><a href="[server.url type='fullpage' query='word=Black']">Black</a></li>
  <li><a href="[server.url type='fullpage' query='word=Blue']">Blue</a></li>
  <li><a href="[server.url type='fullpage' query='word=Silver']">Silver</a></li>

<?php } ?>
</ul>
Feature Filter Widget:

HTML Code:
<ul>
<?php if (@$_GET['tags']) { ?>

  <li><a href="[server.url type='fullpage' query='-tags']">[X] Remove feature filter</a></li>

<?php } else { ?>

  <li><a href="[server.url type='fullpage' query='tags=eyeglasses']">Eyeglasses</a></li>
  <li><a href="[server.url type='fullpage' query='tags=prescription']">Prescription</a></li>
  <li><a href="[server.url type='fullpage' query='tags=sport']">Sport</a></li>

<?php } ?>
</ul>
Men Sunglasses Brand Filter Widget

HTML Code:
<ul>
<?php if (@$_GET['brand']) { ?>

  <li><a href="[server.url type='fullpage' query='-brand']">[X] Remove brand filter</a></li>

<?php } else { ?>

  <li><a href="[server.url type='fullpage' query='brand=Airlock']">Airlock</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Arnette']">Arnette</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Bolle']">Bolle</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Calvin Klein']">Calvin Klein</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Carrera']">Carrera</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Diesel']">Diesel</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Emporio Armani']">Emporio Armani</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Fatheadz']">Fatheadz</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Giorgio Armani']">Giorgio Armani</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Guess']">Guess</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Gunnar']">Gunnar</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Harley Davidson']">Harley Davidson</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Hugo Boss']">Hugo Boss</a></li>
  <li><a href="[server.url type='fullpage' query='brand=IronMan']">IronMan</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Liberty Sport']">Liberty Sport</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Nautica']">Nautica</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Nike']">Nike</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Oakley']">Oakley</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Prada']">Prada</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Ray-Ban']">Ray-Ban</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Silhouette']">Silhouette</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Skechers']">Skechers</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Smith']">Smith</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Spy']">Spy</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Tag Heuer']">Tag Heuer</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Versace']">Versace</a></li>

<?php } ?>
</ul>
Women Sunglasses Brand Filter Widget:

HTML Code:
<ul>
<?php if (@$_GET['brand']) { ?>

  <li><a href="[server.url type='fullpage' query='-brand']">[X] Remove brand filter</a></li>

<?php } else { ?>

  <li><a href="[server.url type='fullpage' query='brand=Anne Klein']">Anne Klein</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Baby Phat']">Baby Phat</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Banana Republic']">Banana Republic</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Benetton']">Benetton</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Bulgari']">Bulgari</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Calvin Klein']">Calvin Klein</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Carrera']">Carrera</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Christian Dior']">Christian Dior</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Dior']">Dior</a></li>
  <li><a href="[server.url type='fullpage' query='brand=DKNY']">DKNY</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Dolce %26 Gabbana']">Dolce &amp; Gabbana</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Fossil']">Fossil</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Hugo Boss']">Hugo Boss</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Modo']">Modo</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Phat Farm']">Phat Farm</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Rodeo']">Rodeo</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Tom Ford']">Tom Ford</a></li>
  <li><a href="[server.url type='fullpage' query='brand=Yves Saint Laurent']">Yves Saint Laurent</a></li>

<?php } ?>
</ul>
CATEGORY PAGE > Default View > View <head> Elements:

HTML Code:
<title>
  [store.if word="on"][store.get param="word"] | [/store.if]
  [store.if tags="on"][store.get param="tags"] | [/store.if]
  [store.if price="on"]Price is [store.get param="price"] | [/store.if]
  [store.if brand="on"][store.get param="brand"] | [/store.if]
  [store.if merchant="on"][store.get param="merchant"] | [/store.if]
  [category.name] |
</title>
<meta name="description" content="[category.description]" />
<meta name="keywords" content="[category.keywords]" />
CATEGORY PAGE > Default View >Text Module:

HTML Code:
<!-- Category Name -->
<h2>  [category.name]
[store.if brand="on"] by [store.get param="brand"][/store.if]
[store.if merchant="on"] sold by [store.get param="merchant"][/store.if]
[store.if price="on"] priced [store.get param="price"][/store.if]</h2>
<!-- /Category Name -->
  #3  
Old February 3rd, 2011, 04:13 PM
ayorofrance ayorofrance is offline
 
Join Date: Sep 2010
Posts: 430
Default

Hi Eric,

This is a massive time saver - thank you sooo much for writing this up....

I have just converted my 115 sub-categories to a filter... 30 mins work instead of 5 hours of brainlessly clicking 'New Category' - brilliant :-)

A couple of questions:

I prefer to have category pages still for the main categories... this allows me show descriptions for each brand, which helps with SEO... However all my sub-categories will be converted to filters...

1. In my store I will end up with around 100 filters, which are brand specific. Do you recommend that I create one filter widget per brand and add 100 widgets to the side bar or would it make better sense to have a huge chunk of code in one master brand filter widget, which populates a drop down box depending on which category is active?

2. I think there is an issue with filter keys of less than 4 characters, so your Sky brand filter will not work unless you can tweak the MySQL .ini file - which you can't on shared hosting... Do you have any ideas on how to get around this?

3. Is it possible to use AND and OR on the word filter? For instance for one filter I have two possible ways of spelling the keyword, but I would like both keywords to be in the same filter. This would also allow you potentially to build out your example above with a second level 'Model' filter, so you could first select 'Ray Ban' then afterwards 'Wayfarer' to narrow down the model within the brand.

In case anyone is interested this is the code I use to create a drop down box instead of a list:
Code:
<form method="get">
  <select name="word" onchange='this.form.submit()'>

    <option value="Option 1"<?php if (@$_GET['word']=='Option 1') {echo ' selected="selected"';}?>>Option 1</option>
    <option value="Option 2"<?php if (@$_GET['word']=='Option 2') {echo ' selected="selected"';}?>>Option 2</option>

  </select>
  <input type="submit" value="Go" class="dfsbmt" />
</form>
  
<?php if (@$_GET['word']) { ?>
  <p><a href="[server.url type='fullpage' query='-word']">[X] Remove Filter</a></p>
<?php } ?>
__________________
WordPress Security - Is your WordPress secure? Get our FREE checklist and find out.

Easy-Email - Access ALL your email accounts with one login & synchronize automatically on all your computers.
  #4  
Old February 3rd, 2011, 06:33 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi
Quote:
Originally Posted by ayorofrance View Post
This is a massive time saver
Glad to hear that!

Quote:
Originally Posted by ayorofrance View Post
1. In my store I will end up with around 100 filters, which are brand specific. Do you recommend that I create one filter widget per brand and add 100 widgets to the side bar or would it make better sense to have a huge chunk of code in one master brand filter widget, which populates a drop down box depending on which category is active?
The latter makes the most sense. Anytime you find yourself repeating the same thing over and over and over again (ie. creating 100 filters and adding 100 widgets to your sidebar), there is probably a better way.

Quote:
Originally Posted by ayorofrance View Post
2. I think there is an issue with filter keys of less than 4 characters, so your Sky brand filter will not work unless you can tweak the MySQL .ini file - which you can't on shared hosting... Do you have any ideas on how to get around this?
This is one of the drawbacks of this method. Modifying the MySQL's sysvar_ft_min_word_len option is the real work around.

Quote:
Originally Posted by ayorofrance View Post
3. Is it possible to use AND and OR on the word filter? For instance for one filter I have two possible ways of spelling the keyword, but I would like both keywords to be in the same filter. This would also allow you potentially to build out your example above with a second level 'Model' filter, so you could first select 'Ray Ban' then afterwards 'Wayfarer' to narrow down the model within the brand.
I don't believe that is possible...

Eric
  #5  
Old February 15th, 2011, 01:49 PM
digitalcow digitalcow is offline
 
Join Date: Jun 2010
Posts: 494
Default

thanks for the guide Eric, very useful.

Have a question re the filters though. Would it be possible to return the filter options on the search results page? I ticked the search option in the plugin but nothing appeared so I assume that's only for the default WP search
  #6  
Old February 15th, 2011, 02:01 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Sure, why not? Just add the path to your search page (store/search*) in the Widget Context section:

  #7  
Old February 18th, 2011, 11:32 AM
badm00n badm00n is offline
 
Join Date: Oct 2010
Posts: 39
Default

Hi Eric - thanks for this tutorial. Are the tags, brand and other parameters already recognized by the system? What if I wanted to filter by style? Sending 'style=boot' for example did nothing.
  #8  
Old February 18th, 2011, 11:36 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Quote:
Originally Posted by badm00n View Post
Are the tags, brand and other parameters already recognized by the system?
Yes, these are specific fields in the database.
  #9  
Old February 21st, 2011, 04:38 PM
feri feri is offline
 
Join Date: Oct 2010
Posts: 74
Default

Can we make two filters independently of each other that use query=word (searching the product description)?
  #10  
Old February 21st, 2011, 04:39 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Quote:
Originally Posted by feri View Post
Can we make two filters independently of each other that use query=word (searching the product description)?
No, this is not possible.
  #11  
Old February 21st, 2011, 05:25 PM
feri feri is offline
 
Join Date: Oct 2010
Posts: 74
Default

Thanks. Is this something that can be possibly added as a future feature?

I am not a programmer, but I think that if we can append price, or tag to the word query, we could possibly add another word query too.
  #12  
Old February 21st, 2011, 05:36 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Quote:
Originally Posted by feri View Post
but I think that if we can append price, or tag to the word query, we could possibly add another word query too.
This is already possible:

http://www.datafeedr.com/docs/item/173
  #13  
Old February 21st, 2011, 05:49 PM
feri feri is offline
 
Join Date: Oct 2010
Posts: 74
Default

Thanks. I read the page a few times already but I think I did not find the answer I was looking for I will ask again, maybe we do not understand each other.

I have a category of products and I want to filter it by:
A) color (blue, green, etc)
B) shape (cross, flower, etc)
C) material (white gold, yellow gold, etc)
each of these things are in the products description.

Is this possible to filter A+B+C together, thus narrowing the search results step-by-step?

Last edited by feri : February 21st, 2011 at 05:54 PM.
  #14  
Old February 21st, 2011, 06:47 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Quote:
Originally Posted by feri View Post
Is this possible to filter A+B+C together, thus narrowing the search results step-by-step?
That's how I understood your question the first time and this is not possible.
  #15  
Old February 22nd, 2011, 01:46 PM
feri feri is offline
 
Join Date: Oct 2010
Posts: 74
Default

If your setup does not work at it should when you want to display widgets on specific categories try this - thanks Eric:

Edit the Widget Context Plugin's php file:

1) change this
PHP Code:
$current_url $this->get_current_url(); 
to this:
PHP Code:
$current_url $wp->request
2) Change this:
PHP Code:
    function check_widget_visibility($vis_settings = array()) {
        global 
$paged
To This:
PHP Code:
function check_widget_visibility($vis_settings = array()) {
        global 
$paged$wp
3) in your widgets URL filtering settings use these settings:
store/category/houses*

There is NO dash at the end...

Good luck! and thanks to Eric!
  #16  
Old February 26th, 2011, 01:41 PM
grooves1200 grooves1200 is offline
 
Join Date: Feb 2011
Posts: 23
Default

How can I get these widget filters to appear in a left-hand column instead of the right-hand sidebars you show above?
  #17  
Old February 26th, 2011, 04:38 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Quote:
Originally Posted by grooves1200 View Post
How can I get these widget filters to appear in a left-hand column instead of the right-hand sidebars you show above?
That's completely related to your theme and how it handles widgets. You can move the Datafeedr widgets (or any WP widget) into any area the theme defines as a 'widget' area.
  #18  
Old March 8th, 2011, 02:24 PM
isler45 isler45 is offline
 
Join Date: Apr 2010
Posts: 29
Default

I am making a site selling phone and tablet cases and accessories. I just started it and want to get this right before I go too far. As of right now I have it structured with all categories and sub categories.

Example:

Motorola
-Motorola Xoom
--Motorola Xoom Cases
--Motorola Xoom Covers
--Motorola Xoom Skins

I am going to continue to do this for any new devices that come out. Is there a downside to doing this besides the time factor? Because eventually I would like to rank for the keywords that are my sub categories and build links to the pages. I won't be able to do that using the filter method right?

Also is there a way to not display products for a category that only has sub categories in it any no products?

For example if you click on motorola it shows products before you pick a sub category.

http://www.phoneandtabletcases.com

Thanks
  #19  
Old March 8th, 2011, 02:34 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Quote:
Originally Posted by isler45 View Post
I am going to continue to do this for any new devices that come out. Is there a downside to doing this besides the time factor? Because eventually I would like to rank for the keywords that are my sub categories and build links to the pages. I won't be able to do that using the filter method right?
I think you are on the right track using categories and not filters.

Quote:
Originally Posted by isler45 View Post
Also is there a way to not display products for a category that only has sub categories in it any no products?
Yes, you can select "Do not display sub-category products" here: The Factory > Your Store > VIEWS > CATEGORY PAGE > Default > View menu > View Properties.
  #20  
Old March 8th, 2011, 02:46 PM
isler45 isler45 is offline
 
Join Date: Apr 2010
Posts: 29
Default

Great. Thanks
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bulk edit subscriptions/filters for categories feri Feature Requests 1 February 19th, 2011 10:41 AM


All times are GMT -5. The time now is 02:59 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.