Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
April 18, 2014, 09:24:28 pm

Login with username, password and session length
Members
Total Members: 11193
Latest: milissag
Stats
Total Posts: 34812
Total Topics: 5838
Online Today: 84
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 51
Total: 52
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
| | | | |-+ 
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 2119 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: 11872


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
[April 17, 2014, 06:35:33 pm]

[April 17, 2014, 05:44:48 pm]

[April 17, 2014, 04:01:58 pm]

[April 15, 2014, 10:58:02 am]

[April 13, 2014, 11:12:24 am]

[April 11, 2014, 09:39:48 am]

[April 11, 2014, 08:48:03 am]

[April 10, 2014, 08:20:58 am]

[April 09, 2014, 09:16:55 pm]

[April 09, 2014, 12:17:21 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.154 seconds with 18 queries.