Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2006
    Posts
    223
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Sep 2006
    Location
    Madison, WI
    Posts
    64
    Plugin Contributions
    0

    Idea or Suggestion 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

  3. #3
    Join Date
    Jun 2006
    Posts
    223
    Plugin Contributions
    0

    Default Re: Product Listing - What file do I edit?

    yeah sorry.

    the website is for a secretry in my office.

    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.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default 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:
    Code:
            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;
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jun 2006
    Posts
    223
    Plugin Contributions
    0

    Default 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?

  6. #6
    Join Date
    Sep 2006
    Posts
    55
    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 www.orendaflutes.com/zencart
    Bradd

  7. #7
    Join Date
    Jun 2006
    Posts
    223
    Plugin Contributions
    0

    Default 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.

 

 

Similar Threads

  1. v150 Where can I find the file to edit product listing template ?
    By hagohn in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 18 Aug 2012, 07:28 AM
  2. Very Quick Question... Product Listing - What page to edit??
    By 19gary72 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Mar 2011, 09:00 PM
  3. What file do I edit?
    By ebaobao in forum General Questions
    Replies: 1
    Last Post: 24 Aug 2008, 12:42 AM
  4. what file to show product listing??
    By taguchi_isara in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 4 Dec 2007, 01:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg