Forums / Upgrading to 1.5.x / My products in categories are displayed in descent order

My products in categories are displayed in descent order

Started by solo_400 on 25 Jul 2012, 7:45 AM · Views: 909

Results 1 to 9 of 9
25 Jul 2012, 7:45 AM
#1
solo_400 avatar

solo_400

Zen Follower

Join Date:
Aug 2009
Posts:
369
Plugin Contributions:
0

My products in categories are displayed in descent order

  1. Products in categories are displayed in descent order

Today I noticed that products in categories are displayed in descent order . First product displayed is the last one added in stock for respective category .
Is there a setting to solve that ?

25 Jul 2012, 6:22 PM
#2
solo_400 avatar

solo_400

Zen Follower

Join Date:
Aug 2009
Posts:
369
Plugin Contributions:
0

Re: My products in categories are displayed in descent order

It is normal behaviour of 1.5 version ?

25 Jul 2012, 7:11 PM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,893
Plugin Contributions:
20

Re: My products in categories are displayed in descent order

Have you given any of the products a sort order? Without a sort order, Zen Cart will do its own sort.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

25 Jul 2012, 8:47 PM
#4
solo_400 avatar

solo_400

Zen Follower

Join Date:
Aug 2009
Posts:
369
Plugin Contributions:
0

Re: My products in categories are displayed in descent order

I have Display Product Listing Default Sort Order = 2a like Production environment but products are displayed from the last added till first added on stock for each category . Is there other options to set ?

25 Jul 2012, 9:23 PM
#5
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: My products in categories are displayed in descent order

solo_400:

I have Display Product Listing Default Sort Order = 2a like Production environment but products are displayed from the last added till first added on stock for each category . Is there other options to set ?
Nope.. do you have values in your sort order field??

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

25 Jul 2012, 9:50 PM
#6
solo_400 avatar

solo_400

Zen Follower

Join Date:
Aug 2009
Posts:
369
Plugin Contributions:
0

Re: My products in categories are displayed in descent order

SOLVED .

The only way to do it is changing includes/index_filters/default_filter.php

case 'PRODUCT_LIST_NAME':
// $listing_sql .= " order by pd.products_name " . ($sort_order == 'd' ? 'desc' : ''); Instead order by NAME i choose ordering by date added !
$listing_sql .= ' order by p.products_date_added DESC';

Please put this option on next release :-)

25 Jul 2012, 10:15 PM
#7
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: My products in categories are displayed in descent order

solo_400:

SOLVED .

The only way to do it is changing includes/index_filters/default_filter.php

case 'PRODUCT_LIST_NAME':
// $listing_sql .= " order by pd.products_name " . ($sort_order == 'd' ? 'desc' : ''); Instead order by NAME i choose ordering by date added !
$listing_sql .= ' order by p.products_date_added DESC';

Please put this option on next release :-)
Are you talking about the store-side displays?? (Honestly.. that wasn't clear from your post which is why we all responded thinking you were talking about the admin side)

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

25 Jul 2012, 10:39 PM
#8
solo_400 avatar

solo_400

Zen Follower

Join Date:
Aug 2009
Posts:
369
Plugin Contributions:
0

Re: My products in categories are displayed in descent order

Sorry , my english is not the maximum.

I was talking about normal browsing . When selecting any category in order to visualize the products ( if I understand well ) only this sort available options :

Products Display Order by

0= Product ID
1= Product Name
2= Model
3= Price, Product Name
4= Price, Model
5= Product Name, Model
6= Product Sort Order

As we see Date Added missing .

26 Jul 2012, 4:32 AM
#9
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,893
Plugin Contributions:
20

Re: My products in categories are displayed in descent order

I'll jump in to say that this is what the new products listing is designed to do. If you want to bring attention to new products, then new products listing is the way to do it throughout the site.
I could see where it MIGHT be advantageous to have products sorted by date added but, I can't see any reason to add it to the core. The beauty of open source is that you can make it do what you want. There would need to be a large number of "me too's" before core change might be considered. You could package this as an add-on for those that might want to use it in the future.
As far as I can tell, yours is a first. That doesn't mean it's not going to be important to you. Just not quite ready for core time.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com