Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 23, 2013, 08:50:10 am

Login with username, password and session length
Members
Total Members: 10768
Latest: tuberose
Stats
Total Posts: 32388
Total Topics: 5479
Online Today: 69
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 47
Total: 48
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
| | | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: [1.3.9] order products by ID_ITEM DESC  (Read 1435 times)
Vincent Volmer
Community Suite Customer
Sr. Member
******
Offline Offline

Posts: 493


SMF 2.0.1


View Profile WWW
« on: May 27, 2010, 02:25:11 pm »

Hello SMFHacks,

I have changed a bit of the code in Store2.template.php to let it order products by ID_ITEM DESC

find (line 79 in Store2.template.php)
Code:
ORDER BY i.itemorder DESC LIMIT $context[start]," . $modSettings['store_set_items_per_page']);

replace with
Code:
ORDER BY i.ID_ITEM DESC LIMIT $context[start]," . $modSettings['store_set_items_per_page']);

I don't know what itemorder does but it shuffles the items instead of the newest items in first place.

Thanks,
Vincent
Logged

SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11000


View Profile
« Reply #1 on: May 27, 2010, 02:33:49 pm »

It is used if you want to have a custom order for your products instead of the latest so you can use the up/down on an item to reorder it.
Logged
Vincent Volmer
Community Suite Customer
Sr. Member
******
Offline Offline

Posts: 493


SMF 2.0.1


View Profile WWW
« Reply #2 on: May 27, 2010, 02:35:58 pm »

It is used if you want to have a custom order for your products instead of the latest so you can use the up/down on an item to reorder it.

Oh, okay....thanks for your explanation! Maybe you can make it an option? Order by ID or custom order?
Logged

Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 04:50:21 am]

[May 22, 2013, 10:03:30 pm]

[May 22, 2013, 03:00:09 pm]

[May 22, 2013, 03:03:31 am]

[May 21, 2013, 03:27:16 pm]

[May 21, 2013, 02:11:10 pm]

[May 21, 2013, 01:18:58 pm]

[May 21, 2013, 12:22:02 am]

[May 21, 2013, 12:20:41 am]

[May 19, 2013, 11:13:02 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 2.237 seconds with 21 queries.