Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Join Date
    Dec 2006
    Location
    Summer:Ontaio, Winter:Texas
    Posts
    211
    Plugin Contributions
    0

    Default Re: Changeing catagory layout?

    Quote Originally Posted by BillNally View Post
    Sorry I just turned it off until I could get back to it.
    I would like the bottom row to stay and the crampt one off but I don't seem to be able to find it.
    O.K. I followed it this far, BUT how do I turn the "crampt one" off??

  2. #12

    Default Re: Changeing catagory layout?

    I have no idea I still haven't got it sorted myself

  3. #13
    Join Date
    Dec 2006
    Location
    Summer:Ontaio, Winter:Texas
    Posts
    211
    Plugin Contributions
    0

    Default Re: Changeing catagory layout?

    well I figured out that if you comment out the following line (175?)
    'params' => 'class="productListing-data"',

    at least the "cramped" text will be left aligned! But I would like to have the description under the picture.....

  4. #14
    Join Date
    Dec 2006
    Location
    Summer:Ontaio, Winter:Texas
    Posts
    211
    Plugin Contributions
    0

    Default Re: Changeing catagory layout?

    commenting out the following ( { is part of line 99)

    // {
    // $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($listi ng->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>';
    // }

    and un-commenting lines 179-191
    will remove the "cramped" description, BUT now under Item Name is the previous filed (in my case the name of the manufacturer).....

    Perhaps I should learn php before I attempt any modifications... :)
    Last edited by Sunabac; 18 Jan 2007 at 11:34 PM.

  5. #15
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Changeing catagory layout?

    Turn on the Product Description ...

    Copy the file:
    /includes/modules/product_listing.php

    /includes/modules/your_template_dir/product_listing.php

    Uncomment the code lines 180 to 191 (remove the // in front of each line)

    Go to lines 97 to 101 change from:
    PHP Code:
            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'] > '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>';
            } 
    To read:
    PHP Code:
            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>';
            } else {
              
    $lc_text '<h3 class="itemTitle"><a href="' zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 'cPath=' $_GET['cPath'] . '&' '') . 'products_id=' $listing->fields['products_id']) . '">' $listing->fields['products_name'] . '</a></h3>';
            } 
    All done ...
    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!

  6. #16

    Default Re: Changeing catagory layout?

    Thats perfect thank you very much

  7. #17
    Join Date
    Dec 2006
    Location
    Summer:Ontaio, Winter:Texas
    Posts
    211
    Plugin Contributions
    0

    Default Re: Changeing catagory layout?

    Yes, thank you from me as well!!

  8. #18
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Changeing catagory layout?

    Now just remember us when you are rich and famous ... keep that coffee coming ...
    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!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. catagory product info layout
    By BillNally in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 7 Jul 2010, 07:48 PM
  2. How do I change catagory layout?
    By penguino in forum Basic Configuration
    Replies: 2
    Last Post: 25 Mar 2008, 11:29 AM
  3. catagory/subcatagory layout
    By nenemaria in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 27 Jun 2007, 04:55 AM
  4. Sub/Catagory Layout
    By mrbig in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 10 Sep 2006, 10:31 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