| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
displaying products with higher productID first | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Ok this is probably something i've overlooked.
But is there a way with products_t.php to display the items with a higher productID first ??? for example productID 234,235,236 will display before 127,126,125 ??? Reason being is that those with a higher productID will always be newer products so i would want those to be displayed first.
__________________
x-cart 4.0.5 (live and heavily modded) Server: freebsd |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Ok, here is a quick little mod that will do that for you. This will give you a checkbox in Admin (in Appearance Options, right under the Display Order dropdown) that will allow you to check if you want the listing in revere order or not, and it will also change the "Default" order method to ProductID.
Open products.php and look for the lines: Code:
Right under this add this code: Code:
Open /include/search.php and look for this block of code: Code:
and replace the line Code:
with Code:
Run this SQL patch in the Patch/Upgrade section Code:
|
|||||||||
#3
|
|||||||
|
|||||||
![]() K thanks that worked a treat
__________________
x-cart 4.0.5 (live and heavily modded) Server: freebsd |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Great!
|
|||||||||
#5
|
|||||||||
|
|||||||||
![]() I need something like this for 4.1.6. Anybody know of a way?
__________________
Thanks - CobaltCat I would love to change the world, but they won't give me the source code. |
|||||||||
#6
|
|||||||
|
|||||||
![]() It works for me, but I have to change after following line:
case "title":
__________________
/David Gao/ X-cart business 5.3.6 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|