Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11795
Latest: LaurieluvsGH
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 41468
Total Topics: 7262
Most Online Today: 48
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 70
Total: 71

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

0 Members and 1 Guest are viewing this topic.

Offline Vincent Volmer

  • SMF Gallery Pro Customer
  • Hero Member
  • *****
  • Posts: 517
  • SMF 2.0.17
    • 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: 15689
    • 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 https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Vincent Volmer

  • SMF Gallery Pro Customer
  • Hero Member
  • *****
  • Posts: 517
  • SMF 2.0.17
    • 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
4451 Views
Last post August 20, 2007, 08:08:22 am
by Bloc
3 Replies
5374 Views
Last post March 08, 2008, 12:32:09 pm
by SMFHacks
2 Replies
4231 Views
Last post December 17, 2008, 07:21:05 pm
by Bar Nuthin
2 Replies
2832 Views
Last post March 10, 2010, 04:23:21 pm
by majorwood
3 Replies
2489 Views
Last post April 08, 2010, 10:18:59 am
by SMFHacks

+- Recent Topics

Question (Gallery Pro) by mickjav
Today at 11:59:10 am

Image View by SMFHacks
October 14, 2021, 11:55:21 am

From SMF Gallery Lite to SMF Gallery Pro by SMFHacks
October 11, 2021, 08:00:29 am

Picture Orientation by mickjav
October 09, 2021, 01:25:54 pm

4. Global Headers and Footers by mickjav
October 07, 2021, 12:22:09 am

S3 System For SMF Attachments by shuban
October 06, 2021, 07:58:50 am

Download Page images by mickjav
October 04, 2021, 01:28:07 pm

Agree To Licence by mickjav
October 03, 2021, 10:00:27 am

Install Problems by mickjav
October 01, 2021, 01:33:14 pm

Can SMF2WPBridge bridge SMF membergroups into WP? by SMFHacks
September 30, 2021, 02:07:34 pm

Powered by EzPortal