Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
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 March 18th, 2012, 04:07 AM
quitjob quitjob is offline
 
Join Date: Oct 2011
Posts: 14
Default Price filter

133ezfhl26un3r8w
childinchic.com

Hello, I'm trying to add a price filter to a wp theme widget. I've used this code in factory:
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=-20']">Less than 20</a></li>
  <li><a href="[server.url type='fullpage' query='price=20-50']">20 ~ 50</a></li>
  <li><a href="[server.url type='fullpage' query='price=50-100']">50 ~ 100</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-700']">550 ~ 700</a></li>
  <li><a href="[server.url type='fullpage' query='price=700-950']">700 ~ 950</a></li>
  <li><a href="[server.url type='fullpage' query='price=950-1200']">950 ~ 1200</a></li>
  <li><a href="[server.url type='fullpage' query='price=1200-1500']">1200 ~ 1500</a></li>
  <li><a href="[server.url type='fullpage' query='price=1500-']">More than 1500</a></li>

<?php } ?>
</ul>
the widget is placed an all pages.

Inside the shop i.e /store... everything works well but outside the shop filter does not work.

How to make it work from index page also?

Thank you.
  #2  
Old March 18th, 2012, 09:59 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

The filter is different than a category.

A category is a link to a list of a group of products.

A filter is a way to filter/reduce that list of a group of products.

So, you must have a list of products to apply the filter to. Therefore, the filter will only "work" on a page with a group of products.

Your index page does not contain a list of products. It contains a list of blog posts. So there is nothing to filter.

I hope that makes sense.

Eric
 


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
Price, merchant, brand auto filter Giftoly Questions 4 January 25th, 2012 03:57 PM
'Remove Price filter' like brand filter Giftoly Questions 1 January 20th, 2012 10:48 AM
Price Filter Not Working bredies Problems 1 May 29th, 2011 12:18 AM
Price filter only works on sidebar vonspurter Problems 7 April 22nd, 2011 04:14 AM


All times are GMT -5. The time now is 01:00 PM.


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