Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 11th, 2011, 08:41 AM
ayorofrance ayorofrance is offline
 
Join Date: Sep 2010
Posts: 430
Default New sort variable

Hi Eric,

Great work with v.3.1 of the plugin :-)

I am sure you'll get around to documenting this soon anyway, but I was wondering if you could tell me what the new sort variables are called (for the sorting template):

Code:
      <?php echo datafeedr_tools()->form_select("sort",
        array(
        "price"   => "Price (low to high)",
        "-price"   => "Price (high to low)",
        "name"     => "Product Name (a - z)",
        "-name"   => "Product Name (z - a)",
        )); ?>
Thanks!!

Anders
__________________
WordPress Security - Is your WordPress secure? Get our FREE checklist and find out.

Easy-Email - Access ALL your email accounts with one login & synchronize automatically on all your computers.
  #2  
Old March 11th, 2011, 08:43 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

These are the sorting parameters:

sort=views - sort products by views in ascending order (least to greatest)
sort=-views - sort products by views in descending order (greatest to least)
sort=clicks - sort products by clickthroughs in ascending order (least to greatest)
sort=-clicks - sort products by clickthroughs in descending order (greatest to least)

Don't forget to allow override in your product list settings before this can work.

Eric
  #3  
Old March 11th, 2011, 09:17 AM
ayorofrance ayorofrance is offline
 
Join Date: Sep 2010
Posts: 430
Default

Excellent - you're a star!
__________________
WordPress Security - Is your WordPress secure? Get our FREE checklist and find out.

Easy-Email - Access ALL your email accounts with one login & synchronize automatically on all your computers.
  #4  
Old March 11th, 2011, 12:57 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

I made a mistake regarding the clickthroughs query string in my original post. Please see my update post.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New "compset_status" variable grooves1200 Questions 6 March 19th, 2011 06:02 PM
Sort by fields lbuilta59 Feature Requests 1 February 9th, 2011 09:55 AM


All times are GMT -5. The time now is 12:54 PM.


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