Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Unable to make column grid show more than 1 column

Unable to make column grid show more than 1 column

Views: 3,588

Results 1 to 17 of 17
11 Oct 2011, 11:03 PM
#1
zschinelli avatar

zschinelli

New Zenner

Join Date:
Oct 2011
Posts:
8
Plugin Contributions:
0

Unable to make column grid show more than 1 column

Hello! My first thread. I have been searching the FAQ's for 3 hours to no avail. I have uploaded the Column Grid Layout and changed to "Column" and 3 columns per row. I am unable to find the solution. Here is a link to the site and the one page with products loaded:

http://www.cassstreetmusic.com/catalog/index.php?main_page=index&cPath=1

Thanks!
Schinelli

11 Oct 2011, 11:42 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Unable to make column grid show more than 1 column

That output could be caused by a missing mod version of /includes/templates/your_template/templates/tpl_modules_product_listing.php. The stock version is only able to handle row output, and outputs the elements with row-type formatting. Check your copy of that file.

12 Oct 2011, 1:24 AM
#3
zschinelli avatar

zschinelli

New Zenner

Join Date:
Oct 2011
Posts:
8
Plugin Contributions:
0

Re: Unable to make column grid show more than 1 column

Thanks for the reply. I checked and that is where I get confused. The help text for the Column Layout Grid v1.3.8 said to place the two files in folders that don't exist.

One is includes/modules/YOUR_TEMPLATE/product_listing.php, and the second is includes/templates/YOUR_TEMPLATE/templates/tpl_modules_product_listing.php

Therein lies the problem. In my includes/templates folder neither the "classic" or my custom "darkness" folders contain a sub-folder named "templates". And in my modules/ folder there is only a folder for "classic" and it contains an empty text file. Did the instructions imply I was to create folders to match those links?

The sad part is I have successfully installed the column grid layout on an identical site design. http://www.posterheaven.com

12 Oct 2011, 1:36 AM
#4
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: Unable to make column grid show more than 1 column

One is includes/modules/YOUR_TEMPLATE/product_listing.php, and the second is includes/templates/YOUR_TEMPLATE/templates/tpl_modules_product_listing.php

YOUR_TEMPLATE needs to be replaced by the name of the template you are using and in your case it would be darkness if you don't have the necessary folder then you need to create one for the file needed for your mod.

12 Oct 2011, 1:47 AM
#5
zschinelli avatar

zschinelli

New Zenner

Join Date:
Oct 2011
Posts:
8
Plugin Contributions:
0

Re: Unable to make column grid show more than 1 column

I am totally aware of that. There is no "Darkness" folder in the modules folder, and there is no "Templates" sub-folder in the templates/darkness folder.

I was smart enough to figure that much out, sorry I didn't make that more clear to you. There is no includes/modules/darkness/ folder and there is no includes/templates/darkness/templates/ folder. I will let you ftp in if you want to see exactly.

Thanks again!

12 Oct 2011, 2:26 AM
#6
zschinelli avatar

zschinelli

New Zenner

Join Date:
Oct 2011
Posts:
8
Plugin Contributions:
0

Re: Unable to make column grid show more than 1 column

Thanks for the responses.

I solved the problem by uploading the product_listing.php to the parent modules folder. I did not place it in the "classic" folder because I am not using that, and my template folder "darkness" does not exist in the modules folder. Hope that helps anyone who gets stuck.

The instructions say includes/modules/YOUR_TEMPLATE/product_listing.php, but it is actually includes/modules/product_listing.php

Thanks again for your help.

12 Oct 2011, 5:29 AM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Unable to make column grid show more than 1 column

/YOUR_TEMPLATE/ folders are a guide to what you need; if there is not already a folder of the proper name in that location, just create one. Anywhere there is a /classic/ folder, you can create a /darkness/ folder alongside it. And in /includes/templates/, you can make all of the same subfolders in your template folder as exist in the /template_default/ folder.

You should never put a modified file in a stock location like /includes/modules/product_listing.php; that file will be erased without a trace the next time you upgrade to a new version of Zen Cart. Save the mod file as /includes/modules/darkness/product_listing.php.

12 Oct 2011, 5:31 AM
#8
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: Unable to make column grid show more than 1 column

And that my friend is why you need to create a folder for YOUR_TEMPLATE which is called darkness in order for you to follow the instructions in the add on...........

YOUR_TEMPLATE needs to be replaced by the name of the template you are using and in your case it would be darkness if you don't have the necessary folder then you need to create one for the file needed for your mod.

If however you choose as you did to not use the template structure then do it any which way and then ask for help when it does not work :lookaroun

12 Oct 2011, 7:05 AM
#9
zschinelli avatar

zschinelli

New Zenner

Join Date:
Oct 2011
Posts:
8
Plugin Contributions:
0

Re: Unable to make column grid show more than 1 column

@ gjh42 & usernamenone Thanks for your time and responses. I will create the folders.

The mod could afford to add a simple line that says you need to create the folders so folks like me wouldn't need to bother the community.

Thanks again...closing

12 Oct 2011, 4:25 PM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Unable to make column grid show more than 1 column

From the mod's readme file:> In the instructions below, I assume that your Zen Cart home directory - where the root of the Zen Cart files is, represented by symbol ZEN_CART_HOME_DIR, and YOUR_TEMPLATE is to be replaced by the name of your customized template.You don't need to explicitly create any new folders; if you rename the mod folders as directed and FTP the whole /includes/ folder to your site, they will drop in exactly where they are needed.
I agree that the instructions could be worded differently, and there are a few ways they could say the same thing.

12 Oct 2011, 4:44 PM
#11
zschinelli avatar

zschinelli

New Zenner

Join Date:
Oct 2011
Posts:
8
Plugin Contributions:
0

Re: Unable to make column grid show more than 1 column

My template is "darkness". Can we agree that YOUR_TEMPLATE means "darkness" to me? If not you won't get what I am saying.

When it says to add the file to includes/modules/YOUR_TEMPLATE/product_listing.php, to me that means includes/modules/darkness/product_listing.php. Are we still on the same page?

The only template folder in the modules folder is "classic". That's not the template I am using. Therefore a folder for "darkness" MUST be created... or are you saying I should rename "classic" to "darkness"? Either way that is not clear in the instructions.

When it says to add to includes/templates/YOUR_TEMPLATE/templates/tpl_modules_product_listing.php that means includes/templates/darkness/templates/tpl_modules_product_listing.php to me. Hope you are still with me.

There is no templates folder within the darkness folder, so this folder also MUST be created to add the file. Another thing that would be smart to make more clear.

If I am still missing something I am sure you will let me know.

13 Oct 2011, 12:45 AM
#12
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Unable to make column grid show more than 1 column

I already said that the instructions could be worded differently, and perhaps clearer.
You don't need to explicitly create any new folders, if you do the common module installation method of renaming /YOUR_TEMPLATE/ folders after unzipping the mod and then FTP the whole /includes/ folder structure (present in this mod as in all well-written mods) to the root of your store.

So the instructions gave a shorthand version of a more complicated installation method than the standard one. Obviously some people don't get that they should create a template folder if it doesn't already exist. It is impossible to spell out every single step in installation without writing a book which most people would then skip because it was too long. This one fact is probably deserving of a comment like > and YOUR_TEMPLATE is to be replaced by the name of your customized template (create the folder if it doesn't already exist).

Better yet, the instructions could be changed to recommend the bulk /includes/ upload, as this gives fewer chances for errors.

13 Oct 2011, 1:11 AM
#13
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: Unable to make column grid show more than 1 column

ZSchinelli:

My template is "darkness".

If I am still missing something I am sure you will let me know.

Yes you are still missing something.......

The instructions of that add on is perfectly clear to someone that has the custom template concept fully understood.

You are missing the concept of the template system and how it works...... How to create a custom template and then how to add modifications to your website through that template system.

Read this and then the next time you make modification you may be able to understand them.

https://www.zen-cart.com/tutorials/index.php?article=142

13 Oct 2011, 1:15 AM
#14
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: Unable to make column grid show more than 1 column

gjh42:

Better yet, the instructions could be changed to recommend the bulk /includes/ upload, as this gives fewer chances for errors.

That would only work in you did not have any other modified files in that folder now or in the future...... Like I said there is nothing wrong with those instructions as hundreds if not thousands of people have read, understood and successfully installed that add on.

13 Oct 2011, 2:47 AM
#15
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Unable to make column grid show more than 1 column

Bulk folder structures can be safely uploaded whether or not the custom folder already exists or has other files in it. It is only if the custom folder already has another mod's copy of the particular file in it that there would be a problem. I note in all of my mod readme files that > If you have any existing modifications to the files listed above, you will have to merge them with the version here. Some mods may be incompatible; if so, you will only be able to use one of them.

14 Aug 2012, 5:10 AM
#16
kkdhaka avatar

kkdhaka

New Zenner

Join Date:
Aug 2012
Posts:
1
Plugin Contributions:
0

Re: Unable to make column grid show more than 1 column

Dear zenners,
I am facing the same issue. I have uploaded the required patch and have put the files in required directories, but still not able to show my products in grid layout. You may visit http://shop.thecomicexpress.com/index.php?main_page=index&cPath=28 for more clarity on the problem I'm facing. Please help.

Regards
Kunal

14 Aug 2012, 8:14 AM
#17
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Unable to make column grid show more than 1 column

What do you have for admin > Configuration > Layout Settings > columns/rows and columns per row?