Zen Cart Logo
Forums / General Questions / product index sort order problem

product index sort order problem

Locked

Views: 2,739

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
22 Sep 2007, 5:32 PM
#1
pivey avatar

pivey

Zen Follower

Join Date:
Mar 2006
Posts:
192
Plugin Contributions:
0

product index sort order problem

I can't figure this out.
Product index sort order "price descending" is not working properly.
I am using a custom template.
In admin, the "Display Product Listing Default Sort Order" is left blank

22 Sep 2007, 5:37 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: product index sort order problem

Where did you get the template? Some makers coughTMcough mangle standard Zen Cart functions...

Can you post a link?

22 Sep 2007, 7:21 PM
#3
ajeh avatar

ajeh

Oba-san

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

Re: product index sort order problem

Check that your field for products_price_sorter is filled in ...

If you import data or change it in any manner other than the Zen Cart Admin core files, there is a good chance this field, which is used for the sorting, is not being updated correctly ...

10 Oct 2007, 12:22 AM
#4
pivey avatar

pivey

Zen Follower

Join Date:
Mar 2006
Posts:
192
Plugin Contributions:
0

Re: product index sort order problem

Oh, sorry.... i did not receive an email to you response
Thanks Ajeh, will check this out as it really seems that only that kind of products are not sortetd.
Will let you know

13 Oct 2007, 7:25 PM
#5
pivey avatar

pivey

Zen Follower

Join Date:
Mar 2006
Posts:
192
Plugin Contributions:
0

Re: product index sort order problem

Of course this did the trick....
Thank you Ajeh :cool:

I have defined the v_products_price_sorter in my products import .txt and did an update to the database as those fields where empty.

13 Oct 2007, 7:29 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: product index sort order problem

Note: there is an updater in the Tools ... Store Manager ... that will update the products_price_sorter based on the master_categories_id ...

Providing that field is filled in this is a quick way to set the products_price_sorter ...

If you do not have the master_categories_id and do not use Linked Products then there is also an updater for the master_categories_id that you can run first ...

15 Oct 2007, 7:39 AM
#7
pivey avatar

pivey

Zen Follower

Join Date:
Mar 2006
Posts:
192
Plugin Contributions:
0

Re: product index sort order problem

Of course there is ...I forgot it with all that stuff & tools in the admin.
Thank you

23 Nov 2007, 10:40 AM
#8
imageriot avatar

imageriot

New Zenner

Join Date:
Mar 2007
Posts:
25
Plugin Contributions:
0

Re: product index sort order problem

Ive tried running the updater in store manager on a zencart with 20,000 products and every time I get error 500.

24 Nov 2007, 1:46 AM
#9
ajeh avatar

ajeh

Oba-san

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

Re: product index sort order problem

This is probably related to a timeout issue as 20,000 products is a lot to update ...

You can try upping this time by editing the file:
/admin/store_manager.php

and changing the time from:

  zen_set_time_limit(600);

to something like:

  zen_set_time_limit(1800);

This is the number of seconds on the timeout ... see if that helps you ...

24 Nov 2007, 3:35 PM
#10
imageriot avatar

imageriot

New Zenner

Join Date:
Mar 2007
Posts:
25
Plugin Contributions:
0

Re: product index sort order problem

I can't find zen_set_time_limit in admin/store_manager.php is it inside one of that pages include files perhaps?

24 Nov 2007, 5:55 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: product index sort order problem

What version of Zen Cart are you running?

What is the ID of the store_manager.php on your server?

25 Nov 2007, 3:58 PM
#12
imageriot avatar

imageriot

New Zenner

Join Date:
Mar 2007
Posts:
25
Plugin Contributions:
0

Re: product index sort order problem

Thanks for your replies Ajeh,

I'm running zen cart version 1.3.7

Im not sure what you mean about the ID of store_manager.php, where would I find that?

I have just looked at the file store_manager.php locally taken straight from the installation folder (zen-cart-v1.3.7-full-fileset-12302006) and I can't find 'zen_set_time_limit' in that file either.

Attached is the code for store_manager.php I hope this helps

25 Nov 2007, 4:11 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: product index sort order problem

oops ... guess we are adding that in the upcoming v1.3.8 ...

Change the code to read:

  zen_set_time_limit(600);
  switch($action) {

Try that first, then increase the 600 ... again this is seconds

25 Nov 2007, 4:51 PM
#14
imageriot avatar

imageriot

New Zenner

Join Date:
Mar 2007
Posts:
25
Plugin Contributions:
0

Re: product index sort order problem

Thanks!

I'll see if that does the trick.

Rory

25 Nov 2007, 6:19 PM
#15
imageriot avatar

imageriot

New Zenner

Join Date:
Mar 2007
Posts:
25
Plugin Contributions:
0

Re: product index sort order problem

Im still getting an error 500 even after using the zen_set_limit, I went as high as 2600 but still no joy.

What should be in the SQL field for this, does it duplicate the products_price field, if so I will do it manually

25 Nov 2007, 10:00 PM
#16
ajeh avatar

ajeh

Oba-san

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

Re: product index sort order problem

No it calculates based on master_categories_id the lowest Price that a Product can be and places that in the products_price_sorter field ...

Check that all of your indexes are part of your database tables compared to a clean install ...

Missing or conflicting indexes will really slow down the process ...