Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11213
Latest: Letourbillon
New This Month: 24
New This Week: 2
New Today: 1
Stats
Total Posts: 33534
Total Topics: 5979
Most Online Today: 102
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 1
Guests: 72
Total: 73

Author Topic: [1.3.9] order products by ID_ITEM DESC  (Read 2353 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: 12238
    • 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 Labradoodle-360
Today at 09:01:56 am

Add an area where individual members can view all the gallery comments they made by shuban
Today at 06:21:29 am

Tapatalk... by dan4ever
September 29, 2014, 04:42:36 pm

Upgrade problem... by dan4ever
September 29, 2014, 04:41:41 pm

Photo Tagging collor by SMFHacks
September 27, 2014, 11:29:30 am

Search function should have filters by Jonas1975
September 26, 2014, 11:41:17 am

Is mysql_real_escape_string Deprecated? by shuban
September 26, 2014, 07:19:39 am

Can someone tell me what I'm doing wrong here? by shuban
September 25, 2014, 08:07:01 pm

Sending an email to only part of a group. by SMFHacks
September 25, 2014, 09:20:12 am

Video file cannot be uploaded by SMFHacks
September 24, 2014, 09:09:15 pm

Powered by EzPortal