Post by dmbrownfield » Thu Dec 04, 2008 4:10 am

Hope I'm not repeating something previously asked but I couldn't find it.........when trying to select an image for a SUB-CATEGORY, there is no order to the images -- not alphabetical (like they appear when I want to select one for a product), nor in the order I loaded them.  Anyway I can fix this?  Thanks.

New member

Posts

Joined
Fri May 09, 2008 12:37 am

Post by hm2k » Thu Dec 04, 2008 4:31 am

Not sure where you mean, can you provide a live url or perhaps a screenshot?

Thanks.

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by bthirsk » Thu Dec 04, 2008 4:54 am

He means the Image file is not sorted when you want to pick an image to display for a category.
The Image file in Category Just needs to be sorted  on Image name.

Brent


Active Member

Posts

Joined
Wed Sep 03, 2008 11:33 am
Location - Canada

Post by dmbrownfield » Thu Dec 04, 2008 5:01 am

Bruce,
  I am sending you a PM with screen shots of what I mean.

Denise

New member

Posts

Joined
Fri May 09, 2008 12:37 am

Post by dmbrownfield » Thu Dec 04, 2008 5:13 am

crap - now they are out of order on all my screens.  I logged out several times and got back in and they are still out of order.  If I still have the problem later, I will send you screen shots.  I tried but sys said the attachment was too large

New member

Posts

Joined
Fri May 09, 2008 12:37 am

Post by bthirsk » Thu Dec 04, 2008 7:13 am

This is the Query in Category.
$results = $database->cache('image', "select i.image_id, i.filename, id.title from image i left join image_description id on i.image_id = id.image_id where id.language_id = '" . (int)$language->getId() . "'");

This is the Query in Product
$results = $database->cache('image', "select i.image_id, i.filename, id.title from image i left join image_description id on (i.image_id = id.image_id) where id.language_id = '" . (int)$language->getId() . "' order by id.title");

Product orders by image title. Category does not, though it should.

When you add an image to category, it seems to change the sort order in product. If you add several products, the sort order will correct.

If you close your browser, and reopen, clear browser cache, Product image sort will be fine.

In Admin/controller/category.php in about line 410 change
      $results = $database->cache('image', "select i.image_id, i.filename, id.title from image i left join image_description id on i.image_id = id.image_id where id.language_id = '" . (int)$language->getId() . "'order by id.title");
This will cure your problem
Last edited by Anonymous on Thu Dec 04, 2008 10:39 am, edited 1 time in total.

Brent


Active Member

Posts

Joined
Wed Sep 03, 2008 11:33 am
Location - Canada

Post by bruce » Thu Dec 04, 2008 11:31 am

dmbrownfield wrote: Bruce,
  I am sending you a PM with screen shots of what I mean.

Denise
Hi Denise,

I did not receive this from you.

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by Qphoria » Thu Dec 04, 2008 10:28 pm

bruce wrote:
dmbrownfield wrote: Bruce,
  I am sending you a PM with screen shots of what I mean.

Denise
Hi Denise,

I did not receive this from you.
This is where this forum gets funny.
There is a user called "bruce"
and there is hm2k with a picture of Bruce Willis.

in this case, hm2k was asking the question, but denise saw the picture of bruce willis and the mental connection was to reference the name bruce. So really denise pm'd "bruce willis", aka hm2k, not "bruce" the user name.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by hm2k » Thu Dec 04, 2008 10:32 pm

1. I did get the PM, but I'd have preferred a screenshot to clearly outline the issue. I suppose I should have said.
2. I had better update my picture.
3. bthirsk has proposed a solution, can you test this to ensure solves it. Please let us know.

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by jty » Thu Dec 04, 2008 11:31 pm

Qphoria wrote: This is where this forum gets funny.
There is a user called "bruce"
and there is hm2k with a picture of Bruce Willis.
http://i384.photobucket.com/albums/oo28 ... ha_sml.gif[/img]

I'm sorry, I have nothing to contribute. I just came here to laugh

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by Qphoria » Thu Dec 04, 2008 11:45 pm

hm2k changed his avatar now : ;D

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 3 guests