Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Product Listing display order issue

Product Listing display order issue

Views: 902

Results 1 to 8 of 8
8 Nov 2011, 5:58 PM
#1
craig_hairston avatar

craig_hairston

New Zenner

Join Date:
Aug 2011
Posts:
46
Plugin Contributions:
0

Product Listing display order issue

Version 1.3.9H

https://www.scplaceonline.com

Getting close to opening the store but have one nagging issue. The product list displays right to left as opposed to left to right.

It also occurs on thehonme page with the three main categories.

For example the products will display:

3 2 1
6 5 4
9 8 7

I want:

1 2 3
4 5 6
7 8 9

This might be a template issue or is it a sort order display issue?
Any help would be appreciated.

8 Nov 2011, 6:37 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Product Listing display order issue

Probably your Template Monster template (though I can't imagine why they'd reverse that). Try switching temporarily to the Classic template and see if it's fixed. My stock Classic test site shows the subcats in the correct order.

8 Nov 2011, 6:47 PM
#3
craig_hairston avatar

craig_hairston

New Zenner

Join Date:
Aug 2011
Posts:
46
Plugin Contributions:
0

Re: Product Listing display order issue

Switching to Classic Green shows everything in proper order.

Ugh, so this is a template quirk.

Somewhere in all that fun code, it appears that the display order is right justified, or the display uses a right orientation. Any clues as to where to begin my search.

The template is #241 from Templates 13.com.

I CERTAINLY don't expect you to debug this but a hint would be appreciated.

Thanks for the help so far.

8 Nov 2011, 7:02 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Product Listing display order issue

Looking at the subcat id's I'm not sure it isn't random.

95 120 99
94 92 96
100 91 90
97 98

That's created in includes/modules/category_row.php - might check to see if TM changed that file, and replace it with a stock copy if they did.

8 Nov 2011, 7:53 PM
#5
craig_hairston avatar

craig_hairston

New Zenner

Join Date:
Aug 2011
Posts:
46
Plugin Contributions:
0

Re: Product Listing display order issue

The template did not have any PHP files (no inlcudes/modules/)

I can override with the sort order but that creates other issues such as the subcategory list in the left sidebox.

All three main categories list the subcategories the same way - right to left.

Is the category ID being used somehow because the category ID order does not match the right to left or left to right order of display.

I'll try a few passes using the product listing features in the control panel again but I'm stumped.

8 Nov 2011, 8:45 PM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Product Listing display order issue

If you got that template from the Free Software Add Ons ( http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=979 ) the template isn't your problem. I installed it on a test site and the subcat sort order is fine ( http: //www.stevesh.org/demo15 ).

What mods have you installed ?

8 Nov 2011, 11:23 PM
#7
craig_hairston avatar

craig_hairston

New Zenner

Join Date:
Aug 2011
Posts:
46
Plugin Contributions:
0

Re: Product Listing display order issue

Let me go through the changes I've made. Most were banner and style type (color) changes but It's looking more like I inadvertantly did something to cause this - I have no idea what I did that could cause this but, I'll go through all my changes and see if I can find a clue.

Thanks for helping me eliminate other possibilities.

24 Nov 2011, 11:59 PM
#8
craig_hairston avatar

craig_hairston

New Zenner

Join Date:
Aug 2011
Posts:
46
Plugin Contributions:
0

Re: Product Listing display order issue

It took me a while to find it but just in case any other newbie runs into this problem - I was following the instructions for the popular change "Powered by Zen Cart" logo, (article 125) and I made the newbie mistake of setting the declares for:

.centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
float: left;

to float right hoping it would stretch my logo and I wanted to see the result.
:no:Big mistake! It loads the product categories from right to left on all category and subcategory pages.

Stevesh, thanks for the great hint, "what code did I really change?" Once I looked through my changes and compared them to the original code,....The newbie "it shouldn't matter much" change was found.

Kudos for the great support stevesh and all the "Zen" masters.