Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11180
Latest: CmViCk225K
New This Month: 3
New This Week: 7
New Today: 3
Stats
Total Posts: 35114
Total Topics: 6202
Most Online Today: 87
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 0
Guests: 81
Total: 81

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

Badge Awards 2.0 Released by 420connect
Today at 01:10:07 am

SMF Store - Move to Another Group Problem by testJL
April 01, 2015, 12:10:27 pm

Relocate Global Headers-Footers mod display by SethAten
March 31, 2015, 09:33:08 pm

Additional fields (for size i.e.) seems doesn't work properly by SMFHacks
March 29, 2015, 08:50:26 am

Bug In Line (1666) by Empire
March 28, 2015, 08:21:46 pm

Ladders & Bracket System by SMFHacks
March 28, 2015, 09:43:44 am

TopMessageIndex by SMFHacks
March 27, 2015, 05:31:35 pm

Can't install by SMFHacks
March 27, 2015, 12:54:45 pm

When installing doesn't create a gallery folder in SMF by SMFHacks
March 26, 2015, 05:12:35 pm

User Galleries by lonewood
March 26, 2015, 03:24:04 pm

Powered by EzPortal