Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 10997
Latest: SgEobO7Ker
New This Month: 36
New This Week: 5
New Today: 3
Stats
Total Posts: 34134
Total Topics: 6080
Most Online Today: 94
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 0
Guests: 73
Total: 73

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

Disable approval by Empire
December 21, 2014, 09:35:15 pm

Description not carried over from downloads area to release thread by Itchigo69
December 21, 2014, 08:02:32 pm

Old versions stacking up by SMFHacks
December 20, 2014, 09:34:47 am

Side column preview? by lewism
December 20, 2014, 09:32:31 am

Member not able to upload by Itchigo69
December 20, 2014, 02:52:46 am

Emailing/PMing Advertiser to Renew? by tank_fv101
December 19, 2014, 11:58:15 am

Double Store Paypal Address Lines by w5hro
December 19, 2014, 10:33:23 am

Is there a specific setting where you can search only a single member's personal by Jonas1975
December 19, 2014, 08:08:57 am

SMF 2.1 by testJL
December 19, 2014, 01:34:30 am

pagination in category overview by fondlyPiranha
December 18, 2014, 09:09:01 am

Powered by EzPortal