Datafeedr Support Forums

Datafeedr Support Forums (/index.php)
-   Questions (/forumdisplay.php?f=67)
-   -   Advanced search widget - sale price (/showthread.php?t=8896)

thk1976 April 1st, 2013 11:28 AM

Advanced search widget - sale price
 
Is it possible to make the pricefilter use the sale price -if any - in the advanced search widget?

Eric April 1st, 2013 11:33 AM

Hi,

Yes, just change price to sprice in the code.

Eric

thk1976 April 1st, 2013 01:13 PM

Store ID: 18c5zqofa4w902li
Website URL: http://www.trendgirls.dk/
URL to page in question: http://www.trendgirls.dk/

Hi Eric, I have changed price to sprice, but i does'nt seem to work. -Thomas


<p class="sprice">
<label for="sprice">Pris</label> [search.selectprice options='Alle, DKK 0 - DKK 100, DKK 100 - DKK 300, DKK 300 - DKK 500, DKK 500 - DKK 700, DKK 700 - DKK 1000, DKK 1000 - DKK 1500, DKK 1500 - DKK 2000, Over DKK 2000(2000+)']
</p>
<p>[search.submit title='Sg!']</p>
</div>

thk1976 April 1st, 2013 01:22 PM

Store ID: 18c5zqofa4w902li
Website URL: http://www.trendgirls.dk/
URL to page in question: http://www.trendgirls.dk/

Hi Eric, I have changed price to sprice, but i does'nt seem to work. -Thomas


<p class="sprice">
<label for="sprice">Pris</label> [search.selectprice options='Alle, DKK 0 - DKK 100, DKK 100 - DKK 300, DKK 300 - DKK 500, DKK 500 - DKK 700, DKK 700 - DKK 1000, DKK 1000 - DKK 1500, DKK 1500 - DKK 2000, Over DKK 2000(2000+)']
</p>
<p>[search.submit title='Sg!']</p>
</div>

Eric April 1st, 2013 02:14 PM

Hi,

Try replacing this:
HTML Code:

<p class="sprice">
<label for="sprice">Pris</label> [search.selectprice options='Alle, DKK 0 - DKK 100, DKK 100 - DKK 300, DKK 300 - DKK 500, DKK 500 - DKK 700, DKK 700 - DKK 1000, DKK 1000 - DKK 1500, DKK 1500 - DKK 2000, Over DKK 2000(2000+)']
</p>

With this:
HTML Code:

<p class="sprice">
        <label for="sprice">Pris</label>
        <select name="sprice">
                <option value="">Alle</option>
                <option value="0-100">DKK 0 - DKK 100</option>
                <option value="100-300">DKK 100 - DKK 300</option>
                <option value="300-500">DKK 300 - DKK 500</option>
                <option value="500-700">DKK 500 - DKK 700</option>
                <option value="700-1000">DKK 700 - DKK 1000</option>
                <option value="1000-1500">DKK 1000 - DKK 1500</option>
                <option value="1500-2000">DKK 1500 - DKK 2000</option>
                <option value="2000-">DKK 2,000+</option>
        </select>
</p>

Eric

thk1976 April 1st, 2013 02:48 PM

Thanks, that worked out, is it possible to make the "sort price low to high" work on the searches?

Eric April 1st, 2013 02:56 PM

Hi,

Yes, this is possible. In your sorting filter on your search page find this code:

HTML Code:

<div class="dffltrs">
  <form method="get">
    <span class="dflside">

Change that code to this:
HTML Code:

<div class="dffltrs">
  <form method="get">
    <input type="hidden" name="word" value="<?php echo strip_tags(@$_GET['word']); ?>" />
    <input type="hidden" name="sprice" value="<?php echo strip_tags(@$_GET['sprice']); ?>" />
    <span class="dflside">

Eric

thk1976 April 1st, 2013 03:18 PM

Cool, thankyou very much!


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

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