Forums / Templates, Stylesheets, Page Layout / creating a new productlisting layout - help wanted

creating a new productlisting layout - help wanted

Locked

Views: 1,246

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
25 Sep 2007, 10:53 AM
#1
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

creating a new productlisting layout - help wanted

first off all I want to get rid off all alpha filters and sorters etc. on the top of the listing page.

second I'd like to create a "loop" for products in the list. Basicly a simple loop would look like this fex:
http://img257.imageshack.us/img257/3320/listlooppj0.gif
and then it would just go on for the next product and all products in the list would have the same look..

the third thing is I'm bit confused already so if anyone has ideas about this or can help anyway let me know.

thanks

25 Sep 2007, 1:46 PM
#2
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Re: creating a new productlisting layout - help wanted

actually would help a lot if someone could point me how to use the same layout as the new products page has on every product listing..

25 Sep 2007, 2:26 PM
#3
ajeh avatar

ajeh

Oba-san

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

Re: creating a new productlisting layout - help wanted

There is a small bug to the switch for the Alpha Filter:
http://www.zen-cart.com/forum/showthread.php?t=73647&highlight=alpha+filter

NOTE: this is fixed in v1.3.8 but it is done with a variation of the posted work around ...

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!

25 Sep 2007, 3:18 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,672
Plugin Contributions:
0

Re: creating a new productlisting layout - help wanted

There is a Gric Listing mod in the downloads section.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

25 Sep 2007, 3:38 PM
#5
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Re: creating a new productlisting layout - help wanted

A, I don't really care to fix the sorter I'd just want to get rid off it by anymeans..

Kim did you look at the image? Do you recommend using columnar mod even though my grid would be only 1 row and 1 column?

I just want the product list to look like the new products listing since that's the only listing file I can make sense from..

29 Sep 2007, 1:09 AM
#6
recket avatar

recket

New Zenner

Join Date:
Sep 2007
Posts:
6
Plugin Contributions:
0

Re: creating a new productlisting layout - help wanted

i am just looking for help on this issue as well.. if anyone knows answer on how to separate the values drawn from database into pieces so that they can then be plugged into html based layout.. currently the string :

<?php echo '<div' . $r_params . '>' . $list_box_contents[$row][$col]['text']. '</div>' . "\n"; ?>

in the columnar display controls the whole product listing display.. i tried separating it and was successful by renaming some of the [text] values in the product_list.php to something like [textdesc] and then drawing it by a separate <?php echo ...?> command however this screws up the whole page layout due to my either lack of knowledge in css in the area that controls the <div> command or I don't know anymore.. :) As soon as I begin using the html to wrap the script.. the whole layout is gone .. or i lose the three products per row layout..

Please help. thank you.

29 Sep 2007, 9:17 PM
#7
morgankhalil avatar

morgankhalil

New Zenner

Join Date:
May 2006
Posts:
16
Plugin Contributions:
0

Re: creating a new productlisting layout - help wanted

poosk:

actually would help a lot if someone could point me how to use the same layout as the new products page has on every product listing..
i have been looking for how to do this for a while now and i cant seem to find anything

29 Sep 2007, 10:58 PM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: creating a new productlisting layout - help wanted

I believe the Coumn Grid mod will give you that listing style even if you have it set to one product per row, as long as you have selected the "grid" style instead of "row" style.

29 Sep 2007, 11:30 PM
#9
gjh42 avatar

gjh42

Black Belt

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

Re: creating a new productlisting layout - help wanted

To give yourself full control over the styling of the product listing, you can edit /includes/modules/your_template/product_listing.php to give a meaningful class to each element. For example, change this part:php switch ($column_list[$col]) { case 'PRODUCT_LIST_MODEL': $lc_align = ''; $lc_text = $listing->fields['products_model']; break; case 'PRODUCT_LIST_NAME': $lc_align = ''; if (isset($_GET['manufacturers_id'])) { $lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>' ; } else { $lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 0 ? 'cPath=' . $_GET['cPath'] . '&' : '') . 'products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>'; } break; case 'PRODUCT_LIST_MANUFACTURER': $lc_align = ''; $lc_text = '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing->fields['manufacturers_id']) . '">' . $listing->fields['manufacturers_name'] . '</a>'; break; to this:```php
switch ($column_list[$col]) {
case 'PRODUCT_LIST_MODEL':
$lc_align = '';
//give the model number text a class
$lc_text = '<div class="productListModel">' . $listing->fields['products_model'] . '</div>';
break;
case 'PRODUCT_LIST_NAME':
$lc_align = '';
//title and description already have classes
if (isset($_GET['manufacturers_id'])) {
$lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>' ;
} else {
$lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 0 ? 'cPath=' . $_GET['cPath'] . '&' : '') . 'products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>';
}
break;
case 'PRODUCT_LIST_MANUFACTURER':
$lc_align = '';
//give the mfr link a class
$lc_text = '<a class="productListManufacturer" href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing->fields['manufacturers_id']) . '">' . $listing->fields['manufacturers_name'] . '</a>';
break;

30 Sep 2007, 7:15 PM
#10
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Re: creating a new productlisting layout - help wanted

thanks for the help. the grid mod actually worked well