Datafeedr Support Forums

Datafeedr Support Forums (http://www.datafeedr.com/forums/index.php)
-   Questions (http://www.datafeedr.com/forums/forumdisplay.php?f=67)
-   -   Can I change sorting template to sort like the Price Widget Filter? (http://www.datafeedr.com/forums/showthread.php?t=3817)

cashnow January 30th, 2011 12:01 PM

Can I change sorting template to sort like the Price Widget Filter?
 
If so,

I would like the sorting template to read like the Price Widget: Have the price ranges of the price widget filter in the sorting template. I tried to manipulate the sorting template code ("price") by replacing it with the price filter code ("price=-25") and change the name fields (Price (Low to High) to Less than $25).

The name fields changed but it did not sort.

Any thoughts?

Store ID: 6719
www.forbabygifts.com

Eric January 30th, 2011 01:29 PM

This worked for me:

HTML Code:

<div class="dffltrs">
  <form method="get">
    <span class="dflside">
      Products per page:
      <?php echo datafeedr_tools()->form_select("ppp",
        array(
        "12" => "12",
        "24" => "24",
        "36" => "36",
        "48" => "48",
        )); ?>
    </span>
    <span class="dfrside">
      Price:
      <?php echo datafeedr_tools()->form_select("price",
        array(
        "-25"  => "Under $25",
        "25-50"  => "$25 - $50",
        "50-"    => "Over $50",
        )); ?>
      <input type="submit" value="Go" class="dfsbmt" />
    </span>
    <div class="clearingdiv">&nbsp;</div>
  </form>
</div>


cashnow January 30th, 2011 02:26 PM

works perfect! Thank you!


All times are GMT -5. The time now is 05:42 AM.

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