View Single Post
  #1  
Old January 20th, 2012, 07:18 AM
Giftoly Giftoly is offline
 
Join Date: Dec 2011
Posts: 52
Default 'Remove Price filter' like brand filter

Good Afternoon,

I have just been searching to find a solution for the below but cannot quite see a solution.

I have the following brand filter in place

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=Pandora']">Pandora</a></li>
  <li>More coming soon</li>

<?php } ?>
</ul>
but I wondered how I could do the same for the price range and retain the Remove x filter.

I currently have

Code:
<ul>
  <li><a href="[server.url type='fullpage' query='price=-10']">Less than 10</a></li>
  <li><a href="[server.url type='fullpage' query='price=10-20']">10 ~ 20</a></li>
 
<ul>
and wondered if I could copy the section
Code:
<?php if (@$_GET['brand']) { ?>

  <li><a href="[server.url type='fullpage' query='-brand']">[X] Remove brand filter</a></li>
and just replace the two references to brand with price but it didn't work.

Many thanks for your help
__________________
Many thanks

John
www.giftoly.co.uk