Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
August 23, 2014, 02:15:42 pm

Login with username, password and session length
Members
Total Members: 11326
Latest: Fabia
Stats
Total Posts: 35302
Total Topics: 5914
Online Today: 88
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 59
Total: 60
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
| | | | |-+ 
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 2300 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: 12064


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
by Ken.
[August 22, 2014, 12:29:50 pm]

[August 21, 2014, 11:10:41 pm]

[August 20, 2014, 11:38:43 am]

[August 19, 2014, 08:30:52 am]

[August 19, 2014, 04:50:50 am]

[August 18, 2014, 03:53:35 pm]

[August 18, 2014, 03:21:52 pm]

[August 18, 2014, 12:59:11 pm]

[August 17, 2014, 08:07:16 pm]

[August 16, 2014, 05:59:49 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.201 seconds with 19 queries.