Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2011
    Posts
    18
    Plugin Contributions
    0

    Default Add column to productlisting

    Is it possible to add a different column than the standard options like, productphoto, article name, and price?
    I'd like to add a column where I can add the lengths of the plants.

    Can't find it on the forum :S

    www<dot>nietwoekerendebamboe<dot>nl/bamboe/

  2. #2
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,740
    Plugin Contributions
    22

    Default Re: Add column to productlisting

    Yes, it is possible, but it's not very easy. Especially if you want to allow to sort by that field... I think I've seen a post about this, but can't seem to find it now...

    If you only want to display that info, for example, below the truncated description, I'd go with a custom function in extra_functions directory that would collect that info from the database (assuming it's stored in a separate field or even table) and then echo it below the description. You would call that function from includes/modules/YOUR_TEMPLATE/product_listing.php

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Add column to productlisting


  4. #4
    Join Date
    Mar 2011
    Posts
    18
    Plugin Contributions
    0

    Default Re: Add column to productlisting

    Thanks for the fast reply's.
    Gonna try the last option.

  5. #5
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,740
    Plugin Contributions
    22

    Default Re: Add column to productlisting

    Quote Originally Posted by stevesh View Post
    Are you sure, stevesh? I haven't used that mod for a loooong time, but last time I used it, it was only usable on product_info page, not product_listing as the OP asked for... Or am I missing something here?

  6. #6
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Add column to productlisting

    No, I'm not sure. I've only tested that mod a little. This in the description of the mod suggests it may at least offer a place to start:

    Secret Product - mark a product as secret and then make your product listing and info pages not display the product unless your conditions are met.

  7. #7
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Add column to productlisting

    Quote Originally Posted by tomdonker View Post
    Is it possible to add a different column than the standard options like, productphoto, article name, and price? ...
    I've done this in the past using product attributes and a custom product_listing module. It basically replicated how a "print" catalog usually lists "product variants". This also makes searching and custom filters much easier to implement. But "table based" website product listings are not very friendly for smaller screens (IMHO).

    Lately I'm more in favor of avoiding table layouts for product listings. I usually format product listings more in line with how search engines and other major e-commerce players. This ensures the visitor gets a "familiar" interface, supports small screens (mobile), and reduces the number of clicks required for a purchase. These also do not require any custom coding (just attributes defined for the stuff you want to show customers and a template displaying product listings this way).

    Otherwise you will be probably need to do some custom coding to store the extra column information and modify the output from the product_listing module.
    Last edited by lhungil; 12 Jun 2014 at 09:01 PM.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

 

 

Similar Threads

  1. how to add div to free shipping image in productListing?
    By Soniccc in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 17 Oct 2011, 05:24 AM
  2. Remove Left Column and add images on right column
    By steve Nezia in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 13 Jun 2011, 03:40 PM
  3. Can I add Categoy links left and Right column around center column?
    By cshart in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Oct 2010, 06:06 PM
  4. URGENT! add column add-on not working on 1.3.8a
    By dmac411 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 May 2009, 07:13 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