Datafeedr Support Forums

Datafeedr Support Forums (http://www.datafeedr.com/forums/index.php)
-   Questions (http://www.datafeedr.com/forums/forumdisplay.php?f=67)
-   -   'Remove Price filter' like brand filter (http://www.datafeedr.com/forums/showthread.php?t=6129)

Giftoly January 20th, 2012 07:18 AM

'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 :)

Eric January 20th, 2012 10:48 AM

Here is the code for the price filter: http://www.datafeedr.com/forums/show...7625#post17625


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

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