Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 11932
Latest: maxanthony1976
New This Month: 16
New This Week: 0
New Today: 0
Stats
Total Posts: 37952
Total Topics: 6680
Most Online Today: 66
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 50
Total: 50

Author Topic: [1.3.9] order products by ID_ITEM DESC  (Read 3812 times)

0 Members and 1 Guest are viewing this topic.

Offline Vincent Volmer

  • Hero Member
  • *****
  • Posts: 501
  • SMF 2.0.1
    • View Profile
    • Digiscrap.nl
[1.3.9] order products by ID_ITEM DESC
« 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: [Select]
ORDER BY i.itemorder DESC LIMIT $context[start]," . $modSettings['store_set_items_per_page']);
replace with
Code: [Select]
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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14055
    • View Profile
Re: [1.3.9] order products by ID_ITEM DESC
« 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.
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

Offline Vincent Volmer

  • Hero Member
  • *****
  • Posts: 501
  • SMF 2.0.1
    • View Profile
    • Digiscrap.nl
Re: [1.3.9] order products by ID_ITEM DESC
« 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?

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
3762 Views
Last post August 20, 2007, 08:08:22 am
by Bloc
3 Replies
4525 Views
Last post March 08, 2008, 12:32:09 pm
by SMFHacks
2 Replies
3475 Views
Last post December 17, 2008, 07:21:05 pm
by Bar Nuthin
2 Replies
2144 Views
Last post March 10, 2010, 04:23:21 pm
by majorwood
3 Replies
2047 Views
Last post April 08, 2010, 10:18:59 am
by SMFHacks

+- Recent Topics

Are you killing your forum? by shuban
May 25, 2017, 01:26:02 pm

[Mod]Unofficial SMF 1.1.23 for PHP7 by shuban
May 25, 2017, 01:15:53 pm

Bulk Upload Option? by SMFHacks
May 25, 2017, 01:07:41 pm

nCode Image Resizer ssl sertifika ? by sempatiko
May 23, 2017, 02:50:28 pm

seo4smf_lite-3.2.0-2.1.x by sempatiko
May 23, 2017, 02:34:10 pm

SMF Staff mod button image by SMFHacks
May 22, 2017, 06:50:40 pm

License Key by SMFHacks
May 21, 2017, 08:57:45 am

BadgeAwards2 Does not work with PHP7 / SMF 2.0.14 by balon
May 18, 2017, 02:58:25 pm

SMF 2.0.14 Released with PHP 7 Support and Unofficial SMF 1.1.23 by SMFHacks
May 14, 2017, 11:49:58 pm

Error when trying to open gallery after upgrading from Gallery Lite to Pro by SMFHacks
May 04, 2017, 03:30:12 pm

Powered by EzPortal