Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Join Date
    Feb 2011
    Posts
    19
    Plugin Contributions
    0

    Default Custom Product Listing Layout

    I am trying to add titles to the fields on the product listing page.

    http://economyleasinginc.com/economy...=index&cPath=1

    I would like to make it say Manufacture and that sort of titles.

    Does anyone know what file I would need to edit to do this?

    Thank You

  2. #2
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Custom Product Listing Layout

    looks like you are using columns, ZC does not show product listing row header when column layout is chosen.

    You could change to rows
    ADMIN > CONFIGURATION > PRODUCT LISTING
    change:
    Product Listing - Layout Style to rows

    you can also change the layout so you can sort by manufacturer in the same section by setting the sort order

    hope this helps!

  3. #3
    Join Date
    Feb 2011
    Posts
    19
    Plugin Contributions
    0

    Default Re: Custom Product Listing Layout

    I know about rows. I want to know if in columns there is anty way to do it like for each box it would say the titles like it does on the individual product page.

  4. #4
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Custom Product Listing Layout

    Here is an example of what you need to do. Involves allot of custom coding.

    Step 1
    copy your:
    /includes/languages/english/product_info.php

    to:
    /includes/languages/english/extra_definitions

    Step 2
    rename the copied product_info.php to product_listing.php


    Step 3 (using the manufacturer as example here)
    in that file you will see:
    Code:
    define('TEXT_PRODUCT_MANUFACTURER', 'Manufactured by: ');

    Step 4
    now open this file:
    /includes/modules/CUSTOM_TEMPLATE/product_listing.php

    find:
    Code:
    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;
    change to:
    Code:
    case 'PRODUCT_LIST_MANUFACTURER':
            $lc_align = '';
            $lc_text = TEXT_PRODUCT_MANUFACTURER . '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing->fields['manufacturers_id']) . '">' . $listing->fields['manufacturers_name'] . '</a>';
            break;
    That should put Manufactured by:

    in front of the Manufacturers name on your product listing page when using columns layout.

    BACK UP, BACK UP before you do anything, worked for me, this is just an example

  5. #5
    Join Date
    Feb 2011
    Posts
    19
    Plugin Contributions
    0

    Default Re: Custom Product Listing Layout

    Thank You So Much!

    This was so helpful!

    Now I just have to figure out how to remove that annoying line that is being shown by the price.

  6. #6
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Custom Product Listing Layout

    in your stylesheet_flexible_product_listing.css file

    locate:
    .listingButtonGroup {float: right; width:50%; border-left: 1px solid #999999;} /*demo setup*/

    change to:
    .listingButtonGroup {float: right; width:50%; border-left: 0px solid #999999;} /*demo setup*/


    hope this helps!

  7. #7
    Join Date
    Feb 2011
    Posts
    19
    Plugin Contributions
    0

    Default Re: Custom Product Listing Layout

    I did this but it does not seem to be working. Do I need to changes something else also?

  8. #8
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Custom Product Listing Layout

    Quote Originally Posted by rbarbour View Post
    in your stylesheet_flexible_product_listing.css file

    locate:
    .listingButtonGroup {float: right; width:50%; border-left: 1px solid #999999;} /*demo setup*/

    change to:
    .listingButtonGroup {float: right; width:50%; border-left: 0px solid #999999;} /*demo setup*/


    hope this helps!
    I just did it again and it removes the left border

    double check that you are in the correct .css file and border-left = 0px shown above in red

    you may have to clear your cache cause I don't see it anymore

  9. #9
    Join Date
    Feb 2011
    Posts
    19
    Plugin Contributions
    0

    Default Re: Custom Product Listing Layout

    Thanks, It worked!

    Must have been some kind of delay in the site reading it.

    You have been such a huge help!

    Do you know how I can lower the picture down to be more center next to the txt?

    Thank You

  10. #10
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Custom Product Listing Layout

    I can only suggest that you change

    this:
    .listingProductImage {}

    to this:
    .listingProductImage {width:160px;padding-top:25%;}

    I do not see any other way without changing layout, sorry

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Change Category Product Listing Layout To Match All Product Listing
    By Alfonzo in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 21 Sep 2010, 11:49 AM
  2. Adding Additional Attributes to Product Listing from Custom Product Type
    By Bigman in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 12 Aug 2008, 04:29 PM
  3. Column Grid Layout - trouble with product listing/layout
    By mellonade in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 4 May 2007, 11:18 AM
  4. New Products Layout vs. Product Listing layout
    By tcschmit in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Apr 2007, 05:07 PM
  5. Change "Product Listing" Layout to "New Product Listing" Layout
    By gems14k in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 22 Dec 2006, 10:43 AM

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