Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Posts
    105
    Plugin Contributions
    0

    Default Column Layout for Product Listing Page

    My site is http://outdoorsinteriors.com. I don't want to install the column grid layout mod as I do not want anything changed in my database running sql or changes to my admin. I'd like to modify the files manually to get a column layout of 3 or 4 columns by 5 or 6 rows. Similar to how "New Products" displays on the main page. If anyone could include detail instructions on the files I would need to change. Thank you for all your help.

    OI

  2. #2
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: Column Layout for Product Listing Page

    The column grid layout mod is rather straight forward to install. You shouldn't run into any problems.
    ~Steve~

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Column Layout for Product Listing Page

    You only need to add the sql that comes with the module....
    Make a backup first as this is always advised

    You are adding to the DB anytime a new product is added, a new customer signs up, a new order is placed...

  4. #4
    Join Date
    Jan 2007
    Posts
    105
    Plugin Contributions
    0

    Default Re: Column Layout for Product Listing Page

    Let me ask this......If I use both the .PHP files as my default loaded into my template folders can you tell me how I could "force" the PRODUCT_LISTING_LAYOUT_STYLE == 'columns' to always be set at "columns"?

    Then I would not even need to run the SQL.

    Thanks OI

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Column Layout for Product Listing Page

    You can look at the if case in the module files that look for the admin setting toggle and adjust as needed But a lot of work to avoid a simple sql add

  6. #6
    Join Date
    Jan 2007
    Posts
    105
    Plugin Contributions
    0

    Default Re: Column Layout for Product Listing Page

    Thanks Kobra I appreciate your reply. Basically there are two files 1. tpl_modules_product_listing.php and 2. product_listing.php.

    In the tpl_modules_product_listing.php there is this line of code below. My thought is if I can just put a variable in somewhere at the top to always force PRODUCT_LISTING_LAYOUT_STYLE to always equal "columns" then I would only need to enter that in this one file and that should carry over to the product_listing.php. Do you know the code I would need to enter to force this?


    <?php
    /**
    * load the list_box_content template to display the products
    */
    if (PRODUCT_LISTING_LAYOUT_STYLE == 'columns') {
    require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php');
    } else {// (PRODUCT_LISTING_LAYOUT_STYLE == 'rows')
    require($template->get_template_dir('tpl_tabular_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_tabular_display.php');
    }
    ?>



    Thanks OI

  7. #7
    Join Date
    Feb 2008
    Posts
    1,336
    Plugin Contributions
    1

    Default Re: Column Layout for Product Listing Page

    Do you have something against installing the sql file?
    I have been using this mod for a while and once you set it up once you forget about it. You can adjust how many columns to display in the admin. To set the columns all you have to do is adjust the count of product to display in the box for example if you want to have 4 columns and 4 rows that adds up to 16 products, so you will need to set the maximum number of products in the box to 16.

 

 

Similar Threads

  1. Column Layout Grid for Product Listing
    By fashion2 in forum Addon Templates
    Replies: 284
    Last Post: 25 Nov 2018, 04:04 PM
  2. v151 Column Layout Grid for Product Listing
    By Ardwear Clothing in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Jan 2013, 06:27 PM
  3. Column Layout Grid for Product Listing
    By pilot in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 14 Mar 2011, 07:55 AM
  4. Column layout grid for product listing - one column only
    By london mummy in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 26 Oct 2009, 10:06 AM
  5. Column Layout Grid for Product Listing
    By mohinder in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Jul 2007, 02:57 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