Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Subcategory layout (still not working)

Subcategory layout (still not working)

Views: 957

Results 1 to 13 of 13
1 Feb 2011, 12:16 PM
#1
ec_web avatar

ec_web

New Zenner

Join Date:
Feb 2011
Posts:
89
Plugin Contributions:
0

Subcategory layout (still not working)

Hello everyone,
Have had a good experience with changing what I need too, but when it comes to the subcategory layout, my excederin bottle is empty now....

I have tried every tip and trick I can find in page after page of posts...

I have downloaded and installed properly the column layout grid mod.

I have changed the column setting from row to column

Number of columns per row 3

float left in the css style sheet..........(changed it back after it made no difference) not sure I was even in the right place

no change. Vertical column of subcategories still down the middle of page, no rows..

can someone please take a look at my site and tell me what I am missing?? I know this has been answered millions of times, but it's not working for me..........

Did something in my css sheet change??

http://earthscauldron.com/store/index.php?main_page=index&cPath=9

Thank you

1 Feb 2011, 12:22 PM
#2
kobra avatar

kobra

Black Belt

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

Re: Subcategory layout (still not working)

Did you run the sql patch for this module??

1 Feb 2011, 12:25 PM
#3
ec_web avatar

ec_web

New Zenner

Join Date:
Feb 2011
Posts:
89
Plugin Contributions:
0

Re: Subcategory layout (still not working)

I did this as was stated in the instruction sheet:

Run the following SQL commands into your database.
The easiest way is to open Admin->Tools->Install SQL Patch and paste them in the box and click Send.
(These same commands are in the enclosed column_layout_grid.sql file, for convenience.)

INSERT INTO configuration (configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order,
last_modified, date_added, use_function, set_function)
VALUES ('Product Listing - Layout Style', 'PRODUCT_LISTING_LAYOUT_STYLE', 'rows',
'Select the layout style:<br />Each product can be listed in its own row (rows option)
or products can be listed in multiple columns per row (columns option)', '8', '40', NULL,
now(), NULL, 'zen_cfg_select_option(array('rows', 'columns'),');

INSERT INTO configuration (configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order,
last_modified, date_added, use_function, set_function)
VALUES ('Product Listing - Columns Per Row', 'PRODUCT_LISTING_COLUMNS_PER_ROW', '3',
'Select the number of columns of products to show in each row in the product listing.
The default setting is 3.', '8', '41', NULL, now(), NULL, NULL);

1 Feb 2011, 12:28 PM
#4
kobra avatar

kobra

Black Belt

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

Re: Subcategory layout (still not working)

The issue is not a css issue in your current case

I would insure that you installed the files correctly

1 Feb 2011, 12:57 PM
#5
ec_web avatar

ec_web

New Zenner

Join Date:
Feb 2011
Posts:
89
Plugin Contributions:
0

Re: Subcategory layout (still not working)

I checked the files, this is what I did

Updated code files are included - so the task is simple.

  • Upload the new product_listing.php to ZEN_CART_HOME_DIR/includes/modules/YOURTEMPLATE/product_listing.php
  • Upload the new tpl_modules_product_listing.php to:
    ZEN_CART_HOME_DIR/includes/templates/YOURTEMPLATE/templates/tpl_modules_product_listing.php

Now when I went to update the second php in templates/yourtemplate/templates

I put it in template_default and NOT classic, because I did not see that file there, only css and image folder and template_info.php

Here is the section of my css sheet by the way, this is the way it was (and still is) before I started this change:

#logo, .centerBoxContents, .specialsListBoxContents,.categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
text-align: center;
}

Thanks for your help

1 Feb 2011, 2:14 PM
#6
ec_web avatar

ec_web

New Zenner

Join Date:
Feb 2011
Posts:
89
Plugin Contributions:
0

Re: Subcategory layout (still not working)

ALSO...I just discovered that I can not get the CATEGORY main image to center either...no matter what I do it stays to the left (the category title changed fine).

Could this all be related?? I bet I messed something up, but don't have a clue what to do about it......

1 Feb 2011, 2:27 PM
#7
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: Subcategory layout (still not working)

EC web:

Now when I went to update the second php in templates/yourtemplate/templates
I put it in template_default and NOT classic, because I did not see that file there, only css and image folder and template_info.php

You should have created the new folder, and put the file into that.
Not advisable to overwrite the default files.

EC web:

ALSO...I just discovered that I can not get the CATEGORY main image to center either...no matter what I do it stays to the left (the category title changed fine).

Add this to your stylesheet
#categoryImgListing{text-align: center;}

1 Feb 2011, 2:37 PM
#8
ec_web avatar

ec_web

New Zenner

Join Date:
Feb 2011
Posts:
89
Plugin Contributions:
0

Re: Subcategory layout (still not working)

keneso:

You should have created the new folder, and put the file into that.
Not advisable to overwrite the default files.

Add this to your stylesheet
#categoryImgListing{text-align: center;}

Didn't change anything......Is there anyway to start over on this without wiping out everything else?

I see I messed up by over writing the default, but I'm new at this, didn't know, now I just want to center my category pic, layout my subcategories in rows, and be done with it.

uuuggghh....

1 Feb 2011, 3:30 PM
#9
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: Subcategory layout (still not working)

I would reupload the defualt file from the original Zen Cart, and reinstall the mod.

1 Feb 2011, 6:00 PM
#10
ec_web avatar

ec_web

New Zenner

Join Date:
Feb 2011
Posts:
89
Plugin Contributions:
0

Re: Subcategory layout (still not working)

So I should make new your_template (classic) folders in both template and modules and upload new files into them...correct???

do I name them

classic?

1 Feb 2011, 6:15 PM
#11
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: Subcategory layout (still not working)

Yes, if the name of the template you are using is classic, otherwise the name of template in use.

check this link
https://www.zen-cart.com/tutorials/index.php?article=230

1 Feb 2011, 8:10 PM
#12
ec_web avatar

ec_web

New Zenner

Join Date:
Feb 2011
Posts:
89
Plugin Contributions:
0

Re: Subcategory layout (still not working)

Thank you so much for your help, I got it fixed........

now that I have it where I want it, I've messed up the sideboxes!

Yeah, I know........

I don't want the text in the sideboxes content centered, I want it aligned left, but I don't want to un-center anything else.

Please, if you could.....this is the last I'm messin with it, lolol, but my brain is jello at this point.

take a look:

http://earthscauldron.com/store/

1 Feb 2011, 9:33 PM
#13
ec_web avatar

ec_web

New Zenner

Join Date:
Feb 2011
Posts:
89
Plugin Contributions:
0

Re: Subcategory layout (still not working)

Ahh, nevermind, text align left not center in

#mainWrapper {
background-color: #000000;
text-align: left;
width: 100%;
vertical-align: top;
border: 1px solid #a0704a;

told ya brain was jello:laugh: