osCmax v2.5 User Manual
Results 1 to 6 of 6

Help with displaying 1 product per row from categories

This is a discussion on Help with displaying 1 product per row from categories within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I have thousands of products in the catalog that do not require images, just text. I need to display these ...

      
  1. #1
    Member
    Join Date
    Feb 2009
    Location
    UK
    Posts
    85
    Rep Power
    4


    Default Help with displaying 1 product per row from categories

    I have thousands of products in the catalog that do not require images, just text.

    I need to display these in the main page (when selected from the categories site map on the left nav menu) in the same way as a search result output: ie a table with 1 product per row, with all information and add-to-cart spread out along the row, left justified.

    I do realise that products can be displayed as 1 row per column but the price, code, pack size and add-to-cart are stacked up and center justified. Not ideal for our product range.

    Any help gratefully received. Dex

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Help with displaying 1 product per row from categories

    Switch in the admin:
    Product Display Type (Default = 0 or Columns = 1)

    set to 0
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Member
    Join Date
    Feb 2009
    Location
    UK
    Posts
    85
    Rep Power
    4


    Default Re: Help with displaying 1 product per row from categories

    Thanks Michael, but I need each product description, code, price, size and buy button on one line like a table, not each product taking up 5 separate lines. Any ideas where to change this?

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Help with displaying 1 product per row from categories

    If you do what I describe in my first reply, products will display all on a single row. See the screenshot.
    Attached Images Attached Images
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    Member
    Join Date
    Feb 2009
    Location
    UK
    Posts
    85
    Rep Power
    4


    Default Re: Help with displaying 1 product per row from categories

    No joy. This is so frustrating as I see you have displayed the format I require.

    Our main.php template has been customised so I renamed it main.php.orig it to ensure the fallback main.php was used.

    Then, setting Number Of Colums For Product Listing to 1 and Product Display Type via Admin>Configuration>Product Listing to 0 or 1 has no effect. Products are still displayed in a single row with all detail stacked up.

    Configuration>Cache is set to False and I cleared the Firefox cache between changes.

    If the developer had changed the template to over ride the row setting, which file would I need to edit? Thanks, Dex.
    Last edited by mad_dexter; 03-25-2009 at 07:47 AM.

  6. #6
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Help with displaying 1 product per row from categories

    Most likely you removed the conditional code that checks the constant value for the product listing display type in your templates. It is not in main_page.tpl.php, but in index_products.tpl.php. The code you need is:

    PHP Code:
    <?php if (PRODUCT_LIST_TYPE == 0) {

            include(
    DIR_WS_MODULES FILENAME_PRODUCT_LISTING);
           } else {

            include(
    DIR_WS_MODULES FILENAME_PRODUCT_LISTING_COL);
          }
            
    ?>
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Similar Threads

  1. Product information not displaying in orders
    By lifegrid in forum osCMax v2 Features Discussion
    Replies: 4
    Last Post: 04-06-2007, 08:23 PM
  2. Product listing not displaying
    By humanode in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 10-15-2005, 06:33 PM
  3. Two Categories / One Product
    By matty102 in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 02-10-2005, 12:08 PM
  4. One product - multiple categories
    By MysticalMoon in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 07-29-2004, 10:14 PM
  5. Problems displaying Sub-Categories / Products on same page
    By pigdestroyer in forum osCmax v1.7 Discussion
    Replies: 4
    Last Post: 02-19-2004, 09:36 PM

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
  •