Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • timmieboy Friend
    #189940

    Hello

    How can I make sure that the packages in de list of plans are ordered by price or title.

    Thanks


    1. price-plans
    HeR0 Friend
    #503245

    Now it is sorted by ordering field. You could change the sort order as you wish, you need edit the query statement in the japosts.php model file.

    timmieboy Friend
    #503277

    Can you be more specific, I am not a experince developer.

    Thanks

    HeR0 Friend
    #503566

    You can change order by price as follows:

    [PHP]$query = ‘SELECT s.* FROM #__ja_posting_plans AS s WHERE s.published=1 ‘.$where.’ ORDER BY `type` ASC, ordering DESC’;[/PHP]

    Change to

    [PHP]$query = ‘SELECT s.* FROM #__ja_posting_plans AS s WHERE s.published=1 ‘.$where.’ ORDER BY `type` ASC, price, ordering DESC’;[/PHP]

    timmieboy Friend
    #503677

    Thank you works fine.

    timmieboy Friend
    #505571

    Hello Hero,

    Because of the update, I can’t find the lines you told me to change for different ordering. Can you tell how to order the items again.

    Thanks

    HeR0 Friend
    #505669

    It is in the getItems function in this file componentscom_jajobboardmodelsjaposts.php

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 2 voices, and was last updated by  HeR0 11 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum