-
AuthorPosts
-
timmieboy Friend
timmieboy
- Join date:
- January 2013
- Posts:
- 344
- Downloads:
- 0
- Uploads:
- 59
- Thanks:
- 9
- Thanked:
- 5 times in 1 posts
August 22, 2013 at 9:21 am #189940Hello
How can I make sure that the packages in de list of plans are ordered by price or title.
Thanks
HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
August 23, 2013 at 8:47 am #503245Now 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 Friendtimmieboy
- Join date:
- January 2013
- Posts:
- 344
- Downloads:
- 0
- Uploads:
- 59
- Thanks:
- 9
- Thanked:
- 5 times in 1 posts
August 23, 2013 at 11:58 am #503277Can you be more specific, I am not a experince developer.
Thanks
HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
August 27, 2013 at 7:13 am #503566You 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 Friendtimmieboy
- Join date:
- January 2013
- Posts:
- 344
- Downloads:
- 0
- Uploads:
- 59
- Thanks:
- 9
- Thanked:
- 5 times in 1 posts
August 27, 2013 at 6:58 pm #503677Thank you works fine.
timmieboy Friendtimmieboy
- Join date:
- January 2013
- Posts:
- 344
- Downloads:
- 0
- Uploads:
- 59
- Thanks:
- 9
- Thanked:
- 5 times in 1 posts
September 12, 2013 at 1:07 pm #505571Hello 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 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
September 13, 2013 at 2:55 am #505669It is in the getItems function in this file componentscom_jajobboardmodelsjaposts.php
AuthorPostsViewing 7 posts - 1 through 7 (of 7 total)This topic contains 7 replies, has 2 voices, and was last updated by HeR0 11 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Selectplan order items
Viewing 7 posts - 1 through 7 (of 7 total)