Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Is it just me or Price Sort Order doens't work?!

  1. #1
    Affiliate Member AppThemes Affiliate cjseven's Avatar
    Join Date
    Jun 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Is it just me or Price Sort Order doens't work?!

    Hi,

    I have issues with price sort order.

    it seems that only check first two numbers. Example:

    asc order:


    110€
    33€
    66€
    99€

    desc order:

    99€
    66€
    33€
    110€


    Any ideas?!

    Thanks,

    Antonio
    [url="http://www.licenciados.info"]http://www.licenciados.info[/url] | [url="http://www.formacao.info"]http://www.formacao.info[/url] | [url="http://www.alugarquarto.net"]http://www.alugarquarto.net[/url] | [url="http://www.alugarapartamento.net"]http://www.alugarapartamento.net[/url] | [url="http://www.comprarapartamento.net"]http://www.comprarapartamento.net[/url]

  2. #2
    Veteran taylerj's Avatar
    Join Date
    Apr 2009
    Location
    Las Vegas, NV
    Posts
    380
    Thanks
    1
    Thanked 8 Times in 6 Posts

    Re: Is it just me or Price Sort Order doens't work?!

    I am having trouble getting any of the sorts to work right. Especially in firefox.
    Eric is best known in the forum for his in depth tutorials. He started in design 4 years ago and then discovered WordPress and has been coding and hacking themes and plugins ever since. He's quite helpful if you have any questions for him in the forum. Eric also makes his own WordPress themes and plugins and provides ClassiPress consulting on the side. David Cowgill - (Owner of Classipress)

  3. #3
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    41,380
    Thanks
    173
    Thanked 3,447 Times in 3,318 Posts

    Re: Is it just me or Price Sort Order doens't work?!

    Mine just works fine though some price information are not in the standard digit format.
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  4. #4
    AppThemes Affiliate nprod's Avatar
    Join Date
    May 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Is it just me or Price Sort Order doens't work?!

    Have someone solved this?
    Not working for me neither in Safari or FF.
    The page "reloads" but nothing happens!

  5. #5
    Amateur
    Not a Verified Customer
    Joshharris's Avatar
    Join Date
    Jul 2009
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Is it just me or Price Sort Order doens't work?!

    This does not work for me either....not sure why :S

  6. #6
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Is it just me or Price Sort Order doens't work?!

    The fix is in this post here.

  7. #7
    Affiliate Member AppThemes Affiliate cjseven's Avatar
    Join Date
    Jun 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Is it just me or Price Sort Order doens't work?!

    Hi dcowgill!

    That technique (+0) didn't work... At least for me!

    Any feedback would be great.

    Thanks,

    Antσnio
    [url="http://www.licenciados.info"]http://www.licenciados.info[/url] | [url="http://www.formacao.info"]http://www.formacao.info[/url] | [url="http://www.alugarquarto.net"]http://www.alugarquarto.net[/url] | [url="http://www.alugarapartamento.net"]http://www.alugarapartamento.net[/url] | [url="http://www.comprarapartamento.net"]http://www.comprarapartamento.net[/url]

  8. #8
    Veteran sarge's Avatar
    Join Date
    Jun 2009
    Location
    USA
    Posts
    628
    Thanks
    2
    Thanked 9 Times in 9 Posts

    Re: Is it just me or Price Sort Order doens't work?!

    Doesn't work for me either.
    Always treat everyone with respect and courtesy, but trust no one.

  9. #9
    tariqali's Avatar
    Join Date
    Sep 2009
    Location
    United States
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Is it just me or Price Sort Order doens't work?!

    I tried that fix and it didn't work for me.

  10. #10
    Amateur popsoul's Avatar
    Join Date
    Oct 2009
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Is it just me or Price Sort Order doens't work?!

    Found this solution to the whole Price sorting issue.

    http://wordpress.org/support/topic/277454

    Basically you use this in your sort links
    <a href="?sort=meta_value_number&key=price&order=asc" >
    <a href="?sort=meta_value_number&key=price&order=desc ">

    But then you have to make a few edits to WP. In the main wordpress directory (not classipress) go inside the wp-includes folder and open the query.php file. Then do the following:

    go to line ~2035, after $allowed_keys[] = 'meta_value'; add
    $allowed_keys[] = 'meta_value_number';

    go to line ~2057, after break; add
    case 'meta_value_number':
    $orderby = "$wpdb->postmeta.meta_value+0";
    break;

    I did it and it works for me. If those lines aren't exact for you you may not be up to date with your wordpress. Try upgrading or do a search for the value they said to put your new code in after.

    good luck

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)