Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Move images above category description revisited

Move images above category description revisited

Views: 1,084

Results 1 to 7 of 7
17 Sep 2011, 3:36 PM
#1
catach avatar

catach

Zen Follower

Join Date:
Oct 2005
Posts:
101
Plugin Contributions:
0

Move images above category description revisited

The following has been covered many times in articles like:
http://www.zen-cart.com/forum/showthread.php?t=48591
http://www.zen-cart.com/forum/showthread.php?t=118972
http://www.zen-cart.com/forum/showthread.php?t=163522

What I have done:
Modified:

html\includes\templates\custom\templates\tpl_index_categories.php

Moved:

<!-- BOF: Display grid of available sub-categories, if any --> <?php if (PRODUCT_LIST_CATEGORY_ROW_STATUS == 0) { // do nothing } else { // display subcategories /** * require the code to display the sub-categories-grid, if any exist */ require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php'); } ?> <!-- EOF: Display grid of available sub-categories -->

To above:

<?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>

It works great for moving the images above the description on the "Home page" but it doesn't seem to work for the sub-category display as well. By this I mean; when you are on the home page and select a category to view products listed, the category description shows above the images of the products. I would like to move the product images above the category description.

Does anyone know which file(s) to edit and possibly where to move the php code?

I have tried messing with:
tpl_index_categories.php
tpl_index_default.php
tpl_index_product_list.php

I am using: zen-cart-v1.3.9h a new install

with mods of:
column_layout_grid_v_1_3_8
ceon_uri_mapping_seo_4-0-3

The site I am working on is:
http://www.greatbeerglasses.com/

Thanks in advance for any help
John

17 Sep 2011, 4:08 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Move images above category description revisited

Could be I don't understand, but it looks like the images are above the product name in the product listing. Did you mean the product info page ?

17 Sep 2011, 4:34 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Move images above category description revisited

Now I see. You're looking for indexProductListCatDescription in includes/templates/template_default/templates/tpl_index_product_list.php

17 Sep 2011, 4:42 PM
#5
catach avatar

catach

Zen Follower

Join Date:
Oct 2005
Posts:
101
Plugin Contributions:
0

Re: Move images above category description revisited

I am not sure. I have looked at that file and the php code for categories_description is already below categories_image
That's what driving me nuts
John

17 Sep 2011, 8:20 PM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Move images above category description revisited

I may be still confused. I thought you wanted the category description below the product listing.

The image at the top of that file refers to the main category image, not the product listing images.

17 Sep 2011, 8:24 PM
#7
catach avatar

catach

Zen Follower

Join Date:
Oct 2005
Posts:
101
Plugin Contributions:
0

Re: Move images above category description revisited

Hi all I finally fixed it just before stevesh posted. For which thank you for your interest and help

Here it is for the rest of you

Modify:

html\includes\templates\custom\templates\tpl_index_product_list.php

Move:

<?php /** * require the code for listing products */ require($template->get_template_dir('tpl_modules_product_listing.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_product_listing.php'); ?>

above:

<?php // categories_description if ($current_categories_description != '') { ?>

Now I think I'll have that glass of beer :)

John