Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Column Layout for Product Listing Page

Column Layout for Product Listing Page

Locked

Views: 2,460

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
4 Apr 2009, 7:53 PM
#1
outdoorsinteriors avatar

outdoorsinteriors

Zen Follower

Join Date:
Jan 2007
Posts:
104
Plugin Contributions:
0

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

4 Apr 2009, 8:25 PM
#2
s_t_e_v_e avatar

s_t_e_v_e

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
430
Plugin Contributions:
0

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.

4 Apr 2009, 8:26 PM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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 Apr 2009, 8:43 PM
#4
outdoorsinteriors avatar

outdoorsinteriors

Zen Follower

Join Date:
Jan 2007
Posts:
104
Plugin Contributions:
0

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

4 Apr 2009, 9:09 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

4 Apr 2009, 9:20 PM
#6
outdoorsinteriors avatar

outdoorsinteriors

Zen Follower

Join Date:
Jan 2007
Posts:
104
Plugin Contributions:
0

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

5 Apr 2009, 5:24 PM
#7
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

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.

5 Apr 2009, 6:48 PM
#8
outdoorsinteriors avatar

outdoorsinteriors

Zen Follower

Join Date:
Jan 2007
Posts:
104
Plugin Contributions:
0

Re: Column Layout for Product Listing Page

Thanks for responding back.....yes I have one database that I use and don't want to take any chances on breaking my production site or making any changes to the admin. I'd just like to find a way to force the variable as I mentioned in previous post. I do have another copy of my store running for testing purposes only, but uses my same production database. I don't want to create anohter DB due to restrictions from my host.

I really appreciate your help.....

Thanks again

OI

5 Apr 2009, 6:53 PM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Column Layout for Product Listing Page

OutdoorsInteriors:

I don't want to create anohter DB due to restrictions from my host.
I would say it was time to seek another host that provides tools to support your online business!!!
OutdoorsInteriors:

I have one database that I use and don't want to take any chances on breaking my production site or making any changes to the admin
As I previously posted, there are changes being made on a continuing basis
KoBra:

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...

5 Apr 2009, 7:05 PM
#10
outdoorsinteriors avatar

outdoorsinteriors

Zen Follower

Join Date:
Jan 2007
Posts:
104
Plugin Contributions:
0

Re: Column Layout for Product Listing Page

No time right now to seek another host, but would just like to know what changes I would have to make to get column layout but not using the mod.

Thanks All

OI

5 Apr 2009, 7:13 PM
#11
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Column Layout for Product Listing Page

No time right now to seek another host, but would just like to know what changes I would have to make to get column layout but not using the mod.
I posted the file(s) that you would need to change.
I do not have the time to validate the exact code alterations that would be required for something that will not benefit the community at large.