Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11984
Latest: adm123123
New This Month: 10
New This Week: 5
New Today: 2
Stats
Total Posts: 38104
Total Topics: 6708
Most Online Today: 114
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 110
Total: 110

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

0 Members and 1 Guest are viewing this topic.

Offline Vincent Volmer

  • Hero Member
  • *****
  • Posts: 503
  • 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: 14120
    • 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: 503
  • 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
3836 Views
Last post August 20, 2007, 08:08:22 am
by Bloc
3 Replies
4591 Views
Last post March 08, 2008, 12:32:09 pm
by SMFHacks
2 Replies
3576 Views
Last post December 17, 2008, 07:21:05 pm
by Bar Nuthin
2 Replies
2241 Views
Last post March 10, 2010, 04:23:21 pm
by majorwood
3 Replies
2117 Views
Last post April 08, 2010, 10:18:59 am
by SMFHacks

+- Recent Topics

[Urgent] What happens to CheckGroupExpire if index.php gets hit hard per second by shuban
August 23, 2017, 04:40:16 pm

Purchase Notification Email to Store Admins by SMFHacks
August 22, 2017, 12:21:44 pm

Advance Fake Users and Guests Online by SMFHacks
August 22, 2017, 12:03:40 pm

Won't install in ShelfLife theme. No code matching "Find" code. by ted245
August 11, 2017, 10:12:59 am

Image Linking Codes section missing after install by ted245
August 11, 2017, 08:31:52 am

please i need a programmer who can build this exact forum using smf by horlique
August 07, 2017, 09:03:25 am

Are SMFHack mods compatible with SMF 2.1? by SMFHacks
August 06, 2017, 07:56:38 am

Allow user to customize username and password by SMFHacks
August 04, 2017, 12:22:53 pm

Reset gallery by SMFHacks
August 03, 2017, 11:04:39 am

Members Can't create a Category to upload photos to by SMFHacks
August 02, 2017, 05:07:03 pm

Powered by EzPortal