Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Product Listing - What file do I edit?

Product Listing - What file do I edit?

Locked

Views: 2,618

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
9 Oct 2006, 7:09 PM
#1
bjraines avatar

bjraines

Zen Follower

Join Date:
Jun 2006
Posts:
223
Plugin Contributions:
0

Product Listing - What file do I edit?

I need to change a few things in my product listing. I am using the grid layout.

All the product info seems to be listed in a vertical manner. I just need to move a few things. For instance, when I use the admin the product description moves with the product name. I would like the desciption to be below the image but with the name above the image.

Thanks!

Just point me in the right direction and I should be able to figure it out.

God I love this template. I have to know who made this.

9 Oct 2006, 10:17 PM
#2
bombknex avatar

bombknex

New Zenner

Join Date:
Sep 2006
Location:
Madison, WI
Posts:
54
Plugin Contributions:
0

Re: Product Listing - What file do I edit?

I think you either want to edit 'tpl_columnar_display.php' if you're displaying products in columns or 'tpl_tabular_display.php' if in rows. Both of these are located in 'templates\template_default\common'. Otherwise try searching for 'productListing' (or whatever is in the pages source you want to edit) in the Dev toolkit. And then take a look at the files returned in your search.

I sort of understood what you want but it always helps to see screenshots too!

Cheers,
Jonah

9 Oct 2006, 10:25 PM
#3
bjraines avatar

bjraines

Zen Follower

Join Date:
Jun 2006
Posts:
223
Plugin Contributions:
0

Re: Product Listing - What file do I edit?

yeah sorry.

the website is for a secretry in my office.

https://www.allaboutyoumonograms.com

if you click on the product categories you will see how the rest is jumbled and not styled.

i have tried editing many files but just cant get it to work

i know i can move things around the admin like make the title first but the description seems to go with it.

i want to style it in the same schema as the front.

11 Oct 2006, 5:17 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Product Listing - What file do I edit?

That's all in your /includes/modules/YOURTEMPLATE/product_listing.php

The name is tied with the description:```
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;

15 Oct 2006, 7:53 PM
#5
bjraines avatar

bjraines

Zen Follower

Join Date:
Jun 2006
Posts:
223
Plugin Contributions:
0

Re: Product Listing - What file do I edit?

I see.

How would I begin to separate the two. I am afraid to mess around with all that code. AND isn't it linked to the admin where u can change the order?

18 Oct 2006, 5:54 AM
#6
orenda avatar

orenda

New Zenner

Join Date:
Sep 2006
Posts:
52
Plugin Contributions:
0

Re: Product Listing - What file do I edit?

Go to the download section and get 'column grid layout' and install it. I think it will do what you want with no muss or fuss or reprogramming!

See if this is what you want https://www.orendaflutes.com/zencart
Bradd

18 Oct 2006, 3:50 PM
#7
bjraines avatar

bjraines

Zen Follower

Join Date:
Jun 2006
Posts:
223
Plugin Contributions:
0

Re: Product Listing - What file do I edit?

thats what i use already.

Its just that the item name and description are tied together so if one moves so does the other. I am trying to figure out how to fix that.