Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11170
Latest: jontxu
New This Month: 41
New This Week: 10
New Today: 2
Stats
Total Posts: 35081
Total Topics: 6200
Most Online Today: 88
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 0
Guests: 102
Total: 102

Author Topic: [1.3.9] order products by ID_ITEM DESC  (Read 2524 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: 12897
    • 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

User Galleries by lonewood
Today at 03:24:04 pm

TopMessageIndex by SMFHacks
Today at 11:43:12 am

Only half done. by DenDen60
March 25, 2015, 04:36:00 pm

Can't install by SMFHacks
March 25, 2015, 11:28:39 am

Copyright Removal does not work by werner_hampel
March 25, 2015, 06:39:30 am

When installing doesn't create a gallery folder in SMF by SMFHacks
March 24, 2015, 11:09:41 pm

Bug In Line (1666) by SMFHacks
March 24, 2015, 11:27:19 am

Additional fields (for size i.e.) seems doesn't work properly by testJL
March 23, 2015, 12:03:53 pm

Bypass Download Limit Bug by elbeer
March 23, 2015, 09:17:09 am

Upgrading from 2.0 to 2.5 - Manual Edits by SMFHacks
March 22, 2015, 10:20:30 pm

Powered by EzPortal