Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11841
Latest: lucaowen640
New This Month: 6
New This Week: 3
New Today: 0
Stats
Total Posts: 37364
Total Topics: 6575
Most Online Today: 69
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 0
Guests: 61
Total: 61

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

0 Members and 1 Guest are viewing this topic.

Offline Vincent Volmer

  • Community Suite Customer
  • 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, 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: 13810
    • 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: 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, 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?

 

Related Topics

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

+- Recent Topics

[Theme] SMF : Facebook Theme Beta Test by ittiphol
December 09, 2016, 12:05:52 am

PM opened pm mod by SMFHacks
December 05, 2016, 10:16:23 am

Sort or rank the main categories? by Jens
December 03, 2016, 02:17:41 pm

Need help making theme adjustments. by Jude
December 03, 2016, 02:10:50 pm

SA Facebook Integration 3.1: Exception: REST API is deprecated for versions v2.1 by Jens
December 03, 2016, 10:37:56 am

License Key Failure? by annedi
December 02, 2016, 01:04:04 pm

Disabling this script when focused on a textarea by SMFHacks
November 30, 2016, 03:38:01 pm

Is SVG supported by the Gallery? by SMFHacks
November 29, 2016, 04:59:04 pm

template by SMFHacks
November 29, 2016, 02:27:36 pm

Finding related Gallery items based on description is title search fails by shuban
November 28, 2016, 05:05:04 pm

Powered by EzPortal