Forums / Customization from the Admin / Product Sort Order

Product Sort Order

Locked

Views: 2,910

Results 1 to 19 of 19
This thread is locked. New replies are disabled.
7 Oct 2008, 4:02 PM
#1
pglad avatar

pglad

Zen Follower

Join Date:
Jun 2007
Posts:
198
Plugin Contributions:
0

Product Sort Order

Hi Folks

In 'Configuration > All Listing > Display Product Display - Default Sort Order' I can apparently set my product listing to Date Added or Date Added Desc. But when I try this or any other option it has no affect. Can anyone help me understand why this is please? I want all products to display by Date Added Desc.

Thanks

7 Oct 2008, 7:33 PM
#3
pglad avatar

pglad

Zen Follower

Join Date:
Jun 2007
Posts:
198
Plugin Contributions:
0

Re: Product Sort Order

Aha the fields are empty, that explains a lot. I presumed that the date field would have been automatically filled when products were inserted but obviously not!

Thanks for that :smile:

7 Oct 2008, 7:51 PM
#4
pglad avatar

pglad

Zen Follower

Join Date:
Jun 2007
Posts:
198
Plugin Contributions:
0

Re: Product Sort Order

I'm a bit puzzled as to what has gone wrong here not being an expert on MySQL. Here are the fields from the database:

Field: products_date_added
Type: DATETIME
Length/Values:
Collation:
Attributes:
Null: not null
Default: 0001-01-01 00:00:00
Extra:
Comments:

Can anyone see what I've done wrong please?

9 Oct 2008, 7:53 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product Sort Order

How are you adding your Products?

Are you manually adding them via the Zen Cart Admin with the Add feature? Or, are you importing them?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Oct 2008, 6:45 AM
#6
pglad avatar

pglad

Zen Follower

Join Date:
Jun 2007
Posts:
198
Plugin Contributions:
0

Re: Product Sort Order

The products are being added manually through Admin. I've realised though that whatever sort method I choose in Configuration > All Listing is ignored?

10 Oct 2008, 2:56 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product Sort Order

The Sort Order on the All Listing only applies to the All Products Listing ...

There are many custom Sort Orders available ...

What is the URL to what isn't sorting properly?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Oct 2008, 3:58 PM
#8
pglad avatar

pglad

Zen Follower

Join Date:
Jun 2007
Posts:
198
Plugin Contributions:
0

Re: Product Sort Order

What I want is to have the default setting for all listed products to be in date order descending, but nothing I do changes the current setting of alphabetical ordering.

The URL is www.divatoys.com

Thanks
Patrick

10 Oct 2008, 7:25 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product Sort Order

If you mean on the home page, from what I am seeing you have all random displays of the centerboxes ...

If you mean on a given URL ... please let me know what URL you are not in order on ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

12 Oct 2008, 7:56 AM
#10
pglad avatar

pglad

Zen Follower

Join Date:
Jun 2007
Posts:
198
Plugin Contributions:
0

Re: Product Sort Order

It's when visitors are viewing the products be category that the problem occurs Ajeh e.g.

http://www.divatoys.com/index.php?main_page=index&cPath=72_134_135

These pages always appear in aphabetical order rather than Date Added as chosen in Configuration > All Listing > Default Sort Order

12 Oct 2008, 2:50 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product Sort Order

First, that is not the All Listing ... that is the Index Listing ...

As such, the Date field is not even used in this listing so it would need to have the code customized ...

I once wrote this up on how to do the customization of the Index Listing to use Sort Orders not originally designed for this ...

It may be awhile before I find that or someone else happens to recall where I did that ...

Or ... perhaps someone would like to redo all of the work to make this happen, as it can be custom coded ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 Oct 2008, 3:31 PM
#12
pglad avatar

pglad

Zen Follower

Join Date:
Jun 2007
Posts:
198
Plugin Contributions:
0

Re: Product Sort Order

Ah well, looks like I'll have to leave it as it is for now then. Thanks for trying to help Ajeh.

Patrick

7 Nov 2008, 4:42 PM
#13
drika avatar

drika

New Zenner

Join Date:
Nov 2008
Posts:
4
Plugin Contributions:
0

Re: Product Sort Order

Hello, I'm new here and with the Zen cart, I would like my products appear on store in descending order according to when they were added at the store but did not understand very well what has been explained, someone could tell me Where can I find the database (product data)?

Thanks,
Drika

7 Nov 2008, 7:33 PM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product Sort Order

By default, the Product Listing does not have an option for the default display order to be by date as there is already a New Products listing that has that available ...

You would need to custom code this option as a method of default display ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Nov 2008, 5:39 PM
#15
drika avatar

drika

New Zenner

Join Date:
Nov 2008
Posts:
4
Plugin Contributions:
0

Re: Product Sort Order

Could you tell me how can I do that?
If some instruction in the record book of Zen Cart would be great because I already bought the book.

Thanks,
Drika

9 Nov 2008, 3:07 PM
#16
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product Sort Order

I would have to sit down and write all of the code for making the products_date_added work as a default setting for the Product Listing ...

You can look at how this is managed in the:
/includes/index_filters/default_filter.php

The sorting for the default is set around the section that starts with:

// set the default sort order setting from the Admin when not defined by customer

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Nov 2008, 1:42 PM
#17
drika avatar

drika

New Zenner

Join Date:
Nov 2008
Posts:
4
Plugin Contributions:
0

Re: Product Sort Order

Hello Ajeh, thank you for your help, I put it the way I wanted. :clap:

Drika

10 Nov 2008, 3:06 PM
#18
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product Sort Order

Thanks for the update that this was able to help you sort the products in a different manner on the default sort order ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Nov 2008, 5:58 PM
#19
pglad avatar

pglad

Zen Follower

Join Date:
Jun 2007
Posts:
198
Plugin Contributions:
0

Re: Product Sort Order

Drika:

Hello Ajeh, thank you for your help, I put it the way I wanted. :clap:

Drika

I've been trying to do this without success for ages. Please could you let us know what it was that you did?

Thanks
Patrick