Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11082
Latest: Saltysa5T0
New This Month: 62
New This Week: 10
New Today: 0
Stats
Total Posts: 34398
Total Topics: 6112
Most Online Today: 87
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 0
Guests: 66
Total: 66

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

0 Members and 1 Guest are viewing this topic.

Offline Vincent Volmer

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 495
  • 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: 12604
    • 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: 495
  • 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

questions re SMF 2.1 Beta 1 by Empire
Today at 05:31:28 pm

Comments on the Gallry pro by Empire
Today at 05:29:34 pm

cron crontab - needed for anything? by lewism
January 29, 2015, 12:11:00 pm

Emailing/PMing Advertiser to Renew? by tank_fv101
January 29, 2015, 03:31:07 am

Listing credit not credited by SMFHacks
January 27, 2015, 12:02:39 pm

SMFHacks.com - forum theme currently in use by Encephale
January 25, 2015, 06:10:31 pm

[Mod] Tagging System by SMFHacks
January 25, 2015, 03:48:22 pm

Is there a conflict with pretty urls module? by SMFHacks
January 24, 2015, 03:14:00 pm

Ad locations for a single board by access control forum
January 23, 2015, 01:28:17 pm

Ad Seller Pro how do I update by SMFHacks
January 22, 2015, 08:34:18 pm

Powered by EzPortal