Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11242
Latest: SlyBaldGuys
New This Month: 29
New This Week: 8
New Today: 1
Stats
Total Posts: 33770
Total Topics: 6024
Most Online Today: 86
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 3
Guests: 78
Total: 81

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

Ads below posts by SMFHacks
Today at 07:26:00 am

Ad locations screenshot by SMFHacks
Today at 07:22:21 am

Upgrading from Ad Management 3.2 to Ad Seller Pro 2.1 on SMF 2.09 by SMFHacks
October 30, 2014, 06:31:21 pm

Ajax Continuous Page Scrolling (Facebook Styles) by SMFHacks
October 29, 2014, 04:31:28 pm

Some Problems by m.ehm
October 29, 2014, 04:49:05 am

if you edit a picture that didn't have a custom field applied to it, the opportu by SMFHacks
October 28, 2014, 08:46:32 pm

Core Theme by SMFHacks
October 27, 2014, 08:09:12 pm

Display gallery inside the forum page by SMFHacks
October 27, 2014, 04:19:02 pm

The future of Badge awards by GenesisMUGEN
October 27, 2014, 02:44:05 pm

radio player and chat box by crazyminx
October 26, 2014, 12:41:48 pm

Powered by EzPortal