Forums / Templates, Stylesheets, Page Layout / Which Template Files Control Which Pages?

Which Template Files Control Which Pages?

Results 1 to 9 of 9
05 Aug 2011, 13:06
#1
1105designs avatar

1105designs

New Zenner

Join Date:
Apr 2011
Posts:
22
Plugin Contributions:
0

Which Template Files Control Which Pages?

Hey,

Specifically I am looking for the template files that effect the product listing page; however, is there a place that tells which template files control which pages within Zen Cart? I searched for it but couldn't find it.

Thanks so much in advance for your help!
05 Aug 2011, 13:35
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Re: Which Template Files Control Which Pages?

There isn't anywhere that I know with this information. But it sound like you should start with tpl_modules_product_listing.php.
05 Aug 2011, 13:40
#3
1105designs avatar

1105designs

New Zenner

Join Date:
Apr 2011
Posts:
22
Plugin Contributions:
0

Re: Which Template Files Control Which Pages?

Thanks for that. Unfortunately I don't think that's where what I'm trying to edit is. What I'm trying to do is to move the title of the product underneath the image. Right now the image is below the title. You can see what I'm talking about here:

http://www.spinultimate.com/spin/shop/index.php?main_page=index&cPath=68&sort=20a&page=1

Thanks for your help!
05 Aug 2011, 14:54
#4
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Posts:
2,400
Plugin Contributions:
0

Re: Which Template Files Control Which Pages?

You want your_template/templates/tpl_product_info_display.php -- I think. Copy it from the template_default/templates folder to your template folder to modify it.

Rob
08 Aug 2011, 12:45
#5
1105designs avatar

1105designs

New Zenner

Join Date:
Apr 2011
Posts:
22
Plugin Contributions:
0

Re: Which Template Files Control Which Pages?

rstevenson:

You want your_template/templates/tpl_product_info_display.php -- I think. Copy it from the template_default/templates folder to your template folder to modify it.

Rob


Thanks for trying to help me out. Unfortunately that is not the page that I'm looking for as that is the product info page where you can edit the single product layout for each individual product. I'm looking for where I can edit a page like: http://www.spinultimate.com/spin/shop/?main_page=index&cPath=68

So that I can take the product title which is above the image at this moment and make it so that product image is on top then the product title then the price. And I want it like that for every product being shown on the product listing page. NOT the product info page. Does that make sense?

Thanks!
08 Aug 2011, 14:11
#6
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Posts:
2,400
Plugin Contributions:
0

Re: Which Template Files Control Which Pages?

All I can advise at this point is to follow the php trail through the files. One thing that may help... Zen Cart uses a different list style for different lists. There is a mod which "corrects" that so that all such lists are the same. It's called Single Listing Template. Even if you don't want to use it, looking at the files it mods to make this work should help lead you to the file you're looking for.

Rob
08 Aug 2011, 14:41
#7
1105designs avatar

1105designs

New Zenner

Join Date:
Apr 2011
Posts:
22
Plugin Contributions:
0

Re: Which Template Files Control Which Pages?

rstevenson:

All I can advise at this point is to follow the php trail through the files. One thing that may help... Zen Cart uses a different list style for different lists. There is a mod which "corrects" that so that all such lists are the same. It's called Single Listing Template. Even if you don't want to use it, looking at the files it mods to make this work should help lead you to the file you're looking for.

Rob


How would I begin such a search on a php trail? Does no one know the tpl that edits the product listing layouts?
08 Aug 2011, 15:05
#8
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Posts:
13,980
Plugin Contributions:
46

Re: Which Template Files Control Which Pages?

For the most part (the index pages are "different"), if the url for a Zen Cart page is yourshop.com/index.php?main_page=something then the main customization for that page happens in two places:

1) /includes/modules/pages/something/header_php.php
2) /includes/templates/YOUR_TEMPLATE/templates/tpl_something_default.php

The "index" pages are a bit different:

1) /includes/templates/YOUR_TEMPLATE/templates/tpl_index_default.php controls the look of the main/home page
2) /includes/templates/YOUR_TEMPLATE/templates/tpl_index_categories.php controls the look of a categories' listing page (the page you've asked about).
3) /includes/templates/YOUR_TEMPLATE/templates/tpl_index_prod_list.php controls the look of a category-specific product listing page.
08 Aug 2011, 15:10
#9
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Posts:
1,117
Plugin Contributions:
0

Re: Which Template Files Control Which Pages?

Or look at the code and find the name of the divs, then enter them into the admin/tools/developers toolkit to find that phrase in any of the files - this might show you where they are.