Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2005
    Posts
    27
    Plugin Contributions
    0

    Edit category listing and search result pages

    Hello. I've seen this question asked before, but I still cannot figure it out for the life of me. For featured, new and special products you can edit the template file to redesign the listing pages. However, I can't figure out how to edit the layout of the category listing and search result pages.

    The elements on the page are generated in modules/product_listing.php, but I can't figure out where it creates the tabular display. I would prefer to just put them in DIVs so that I can manipulate the layout with the CSS file. I could create my own loop in the module file, but I would rather leave the module files alone.

    Basically, instead of having the three-column layout: thumbnail | description | price/add to cart, I would like to have thumb | short description/more info button.

    If anyone can give me a hint, I would really appreciate it!

    Thanks!!

    Kevin

  2. #2
    Join Date
    Jan 2005
    Location
    Lake Havasu, AZ
    Posts
    1,149
    Plugin Contributions
    0

    Default Re: Edit category listing and search result pages

    Kevin the display / layout pages are in includes/templates/YOURTEMPLATE/templates

    Take a peek in there for the files you want to change
    When the world gets in my face I say Have A Nice Day.
    * I DO Think and I HAVE BEEN Zenned - therefore, I AM * I donate - do you?
    Custom Templates and Zen Services CRS Designs, Inc.

  3. #3
    Join Date
    Feb 2005
    Posts
    27
    Plugin Contributions
    0

    Default Re: Edit category listing and search result pages

    OK, I figured out that in the template directory, common/tpl_tabular_display.php creates the table layout. I think that I'm going to try and manipulate this file to put things into DIVs instead of tables.

    Does anyone know if this will break any other layout pages?

    Thanks!

    Kevin

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Edit category listing and search result pages

    tpl_tabular_display.php is for generating table-based output

    if you want div-based output, use tpl_columnar_display.php instead. Just point to the alternate file and it's div-based instead of tables. Minor tweaks might be required, but it's the same basic data-feed.
    .

    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
    Feb 2005
    Posts
    27
    Plugin Contributions
    0

    Default Re: Edit category listing and search result pages

    Great! Thanks for the advice.

    Do you guys know if there has been any discussion about using a more pure templating system like Smarty, et al.? That would make this process sooo much easier. In order to do some pretty minor tweaks, I'm having to edit module files, which is problematic. It would be nice in the future to have a better separation between the application and design layers.

    That's just my two cents. I really don't want to step on anyone's toes though :) ZC is BY FAR the best shopping cart that I have used. My hat is off to the developers and contributors!

    Kevin

  6. #6
    Join Date
    Feb 2005
    Posts
    27
    Plugin Contributions
    0

    Default Re: Edit category listing and search result pages

    OK, nevermind the Smarty comment - I did some reading in the forum regarding the issue :)

 

 

Similar Threads

  1. v151 Search result mutiple pages
    By Kcm75 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Oct 2012, 11:19 AM
  2. Replies: 2
    Last Post: 15 May 2012, 06:31 PM
  3. Adding Dropdown Sorter to Category Listing and Search Results
    By preacherman in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 15 Oct 2008, 02:26 AM
  4. Replies: 2
    Last Post: 4 Sep 2008, 04:56 AM
  5. CSS Category Flyout Behind Images in Search Result
    By gems14k in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 19 Aug 2006, 08:56 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR