Thread: Price filter
View Single Post
  #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.