Zen Cart Logo
Forums / Addon Templates / Column Layout Grid for Product Listing sort bar gone?

Column Layout Grid for Product Listing sort bar gone?

Views: 1,472

Results 1 to 3 of 3
12 May 2011, 5:49 PM
#1
jdm719 avatar

jdm719

New Zenner

Join Date:
Jan 2011
Posts:
33
Plugin Contributions:
0

Column Layout Grid for Product Listing sort bar gone?

I asked this in the Column Layout Grid for Product Listing thread but there doesn't seem to be anyone home...
I'm using ver 1.3.9h.
I have installed the column_layout_grid_for_product_listing_1-3-8 mod.
Everything seems to work fine.

The problem is the mod seems to "cost" the sort bar.
I mean that when I choose admin > Product Listing - Layout Style > rows, customers can sort a category by Price +/-, Model +/-, or Name +/-.

If I select admin > Product Listing - Layout Style > columns, that sort bar disappears and customers lose a great functionality.
Is this a broken install?
If not, is there a way re-enable the sort bar with columnar display?
If not, is there a(n advanced) sort mod that works with the Column Layout Grid mod?

http://www.hawonder.com

24 Jul 2011, 9:21 AM
#2
shinsong avatar

shinsong

New Zenner

Join Date:
May 2009
Location:
JAPAN
Posts:
1
Plugin Contributions:
0

Re: Column Layout Grid for Product Listing sort bar gone?

jdm719:

I asked this in the Column Layout Grid for Product Listing thread but there doesn't seem to be anyone home...
I'm using ver 1.3.9h.
I have installed the column_layout_grid_for_product_listing_1-3-8 mod.
Everything seems to work fine.

The problem is the mod seems to "cost" the sort bar.
I mean that when I choose admin > Product Listing - Layout Style > rows, customers can sort a category by Price +/-, Model +/-, or Name +/-.

If I select admin > Product Listing - Layout Style > columns, that sort bar disappears and customers lose a great functionality.

http://www.hawonder.com

I have same situation.
I really want to add this sorting function. I have tried to fix

includes/modules/MY_TEMPLATE/product_listing.php

But I can not still resolve it. I realized to set the following script somewhere under "if (PRODUCT_LISTING_LAYOUT_STYLE == 'columns'){"

line around 80 in product_listing.php

if ( ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {
$lc_text = zen_create_sort_heading($_GET['sort'], $col+1, $lc_text);
}
$list_box_contents[0][$col] = array('align' => $lc_align,
'params' => 'class="productListing-heading"',
'text' => $lc_text );

}

I can not understand to fix it.
To solve this problem, could someone help?

Regards,
Shin Ota

24 Jul 2011, 11:28 AM
#3
stevesh avatar

stevesh

Black Belt

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

Re: Column Layout Grid for Product Listing sort bar gone?

When you think about it, it probably has to be that way. When you select the listing to display in columns, each column would need all three sort options, which would really look cluttered even if there was room in the first place.

Better would be a mod that created a dropdown containing the options above the product listing, but I'm not coder enough to write it.