sort by sku |
Post Reply |
Author | ||||
ym
Newbie Joined: 22-January-2009 Status: Offline Points: 7 |
Post Options
Thanks(0)
Posted: 07-March-2014 at 9:23am |
|||
I'd like to display all featured products by sku, newly added products first and older products in the last row. It looks like by default, it's opposite. Does anybody know the solutions? Thank you.
|
||||
Guests
Guest |
Post Options
Thanks(0)
|
|||
Are you referring to this display on the home page, the featured products page, or both? And do you really mean "sort by" (a user interface option) or just "order by" (a database query option)?
Just looking for a some clarification to be able to assist you with what you really want here.
|
||||
ym
Newbie Joined: 22-January-2009 Status: Offline Points: 7 |
Post Options
Thanks(0)
|
|||
Thank you for the reply. I'm reffering to the featured products page. (showfeatured.asp)
And I meant "order by". I'm adding new products frequently and when this page (showfeatured.asp) is loaded, I'd like to show new products first.
|
||||
Guests
Guest |
Post Options
Thanks(0)
|
|||
Thanks for the clarification.
This is easy to tweak. In /pc/showfeatured.asp, find:
replace that with the following:
Then find:
Replace that with the following:
If you actually assign sort order values to your featured products in the Control Panel, those will trump with this query. If you don't, then everything will be ordered by the date added to the database. You can therefore have the best of both by using the ordering option in the CP if you want to pop certain products to the top, else everything will be ordered by date entered from most recent to oldest. |
||||
ym
Newbie Joined: 22-January-2009 Status: Offline Points: 7 |
Post Options
Thanks(0)
|
|||
It worked!!! Thank you so much.
|
||||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |