Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
July 30, 2014, 02:00:39 am

Login with username, password and session length
Members
Total Members: 11300
Latest: photoprod
Stats
Total Posts: 35192
Total Topics: 5894
Online Today: 63
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 53
Total: 54
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
| | | | |-+ 
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 2264 times)
Vincent Volmer
Community Suite Customer
Hero Member
******
Offline Offline

Posts: 500


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: 12017


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
Hero Member
******
Offline Offline

Posts: 500


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
[July 29, 2014, 02:42:52 am]

[July 28, 2014, 03:10:30 pm]

[July 28, 2014, 12:58:26 pm]

[July 28, 2014, 10:43:03 am]

[July 24, 2014, 03:15:32 pm]

[July 24, 2014, 01:07:19 pm]

[July 23, 2014, 07:52:40 am]

[July 22, 2014, 09:55:50 pm]

by donk
[July 22, 2014, 12:25:04 am]

[July 20, 2014, 11:37:03 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.19 | 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 1.232 seconds with 20 queries.