Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11275
Latest: EmmaMadison
New This Month: 32
New This Week: 10
New Today: 2
Stats
Total Posts: 33933
Total Topics: 6043
Most Online Today: 97
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 1
Guests: 64
Total: 65

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

0 Members and 1 Guest are viewing this topic.

Offline Vincent Volmer

  • Community Suite Customer
  • Hero Member
  • ******
  • Posts: 500
  • SMF 2.0.1
    • View Profile
    • Digiscrap.nl
[1.3.9] order products by ID_ITEM DESC
« on: May 27, 2010, 01: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: 12407
    • View Profile
Re: [1.3.9] order products by ID_ITEM DESC
« Reply #1 on: May 27, 2010, 01: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

  • Community Suite Customer
  • Hero Member
  • ******
  • Posts: 500
  • SMF 2.0.1
    • View Profile
    • Digiscrap.nl
Re: [1.3.9] order products by ID_ITEM DESC
« Reply #2 on: May 27, 2010, 01: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?

 

+- Recent Topics

Download Menu Editor Pro by SMFHacks
November 21, 2014, 11:31:08 pm

Tapatalk... by HDB
November 21, 2014, 02:27:17 pm

Am I just being stupid? by 420connect
November 21, 2014, 10:27:20 am

[Mod] SMF Articles by elbeer
November 21, 2014, 07:15:36 am

Problem with ad seller pro after upgrade to SMF 2.0 by amwebby
November 20, 2014, 11:39:04 pm

MOD Request: Sort / Order by 420connect
November 19, 2014, 07:22:46 am

New fields for the Tweet photos feature by Jonas1975
November 19, 2014, 03:21:23 am

Problem with category permissions by SMFHacks
November 18, 2014, 12:13:00 pm

No twit when adding picture by SMFHacks
November 17, 2014, 04:31:58 pm

Upgraded forum to SMF2.0 - Problems by SMFHacks
November 17, 2014, 07:59:12 am

Powered by EzPortal