Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11320
Latest: Shawjack9
New This Month: 12
New This Week: 3
New Today: 3
Stats
Total Posts: 35528
Total Topics: 6271
Most Online Today: 60
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 1
Guests: 49
Total: 50

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

0 Members and 1 Guest are viewing this topic.

Offline Vincent Volmer

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 498
  • 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: 13072
    • 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
  • Sr. Member
  • ******
  • Posts: 498
  • 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

Banned!!! by SMFHacks
July 03, 2015, 12:01:08 pm

No option to ad picture to Members Galleries in drop down list. by vmstek
July 02, 2015, 08:47:41 am

suggestion picture upload by exit
July 02, 2015, 02:30:08 am

"Bulk Add Pictures" doesn't work | Version 7.0.4 by lakestclair
July 01, 2015, 10:57:05 am

Slideshow ends after 50 pics by SMFHacks
June 30, 2015, 10:01:30 pm

What is the advantage of this mod over doing it manually? by rexall
June 29, 2015, 11:15:35 pm

Badge Awards by balon
June 29, 2015, 04:59:35 pm

Mark all as Viewed by SMFHacks
June 28, 2015, 01:18:38 pm

How to do like button on smf like this page by SMFHacks
June 28, 2015, 12:44:29 pm

Early support for smf 2.1 by SMFHacks
June 28, 2015, 12:06:54 pm

Powered by EzPortal