Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11591
Latest: PatriciaApril1
New This Month: 17
New This Week: 3
New Today: 3
Stats
Total Posts: 36565
Total Topics: 6418
Most Online Today: 47
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 0
Guests: 35
Total: 35

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

0 Members and 1 Guest are viewing this topic.

Offline Vincent Volmer

  • Community Suite Customer
  • Hero Member
  • ******
  • Posts: 501
  • 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: 13478
    • 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: 501
  • 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

Gallery search sub category by Michel68
February 13, 2016, 11:48:21 am

Does this mod still exist? by TehranSD
February 13, 2016, 08:34:42 am

Possible to make keywords required by SMFHacks
February 12, 2016, 10:02:46 am

Moderation of files, option to message uploader by Puppeteer
February 09, 2016, 10:47:00 pm

[Mod]Open Embed by nend
February 08, 2016, 07:40:25 am

Copyright Removal Key Fail - EzPortal by HDB
February 07, 2016, 04:41:59 pm

I need totorial how to place ad codes outsite smf on blogspot by SMFHacks
February 07, 2016, 03:07:46 pm

Link user categories to profiles? by Dragon41673
February 07, 2016, 08:38:58 am

Horizontal Banner within post by northview
February 06, 2016, 11:50:48 pm

Open Embed 0.4 by nend
February 04, 2016, 09:50:05 pm

Powered by EzPortal