| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
category sort listing issue | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
A Sub Cat 2I have modified categories.tpl navigation in order to list top category, and subcat liek in example: Main Cat A A Sub Cat 1 A Sub Cat 3 The below code works great for this, but the only problem with this code is that it does not respect the sort order i have placed on the categories. I know that the functionality is working since it is listed in sorted order on the actual category page. So if anyone can figure out how to have the below code respect the category sort order? Code:
__________________
v4.1.8 GOLD |
|||||||
#2
|
|||||||||
|
|||||||||
![]() try commenting out include/categories.php
around line 171 uasort($all_categories, "func_categories_sort"); but, not sure this is what you are looking for. Try it, it not works, roll back it.
__________________
Dongan MercuryMinds Technologies Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com Follow us at Facebook / Twitter |
|||||||||
#3
|
|||||||
|
|||||||
![]() I had a similar issue, tried commenting it out and got a ascending list of categories. What does this function do? will it affect something else?
__________________
X-Cart version 4.0.19 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Quote:
It will not affect anything i believe
__________________
Dongan MercuryMinds Technologies Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com Follow us at Facebook / Twitter |
|||||||||
#5
|
|||||||
|
|||||||
![]() how do I change to descending direction? do you know?
__________________
X-Cart version 4.0.19 |
|||||||
#6
|
|||||||||
|
|||||||||
![]() uasort() function sorts an array such that array indices maintain their correlation with the array elements they are associated with. This is used mainly when sorting associative arrays where the actual element order is significant.
__________________
Dongan MercuryMinds Technologies Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com Follow us at Facebook / Twitter |
|||||||||
#7
|
|||||||
|
|||||||
![]() Brilliant! Thanks a million, Dongan!
__________________
X-Cart Gold version 4.1.9 PS: This is what part of the alphabet would look like if Q and R were eliminated. |
|||||||
|
|||
X-Cart forums © 2001-2020
|