Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Product Info Display Page

Product Info Display Page

Locked

Views: 1,027

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
21 May 2010, 3:18 PM
#1
autoace avatar

autoace

Totally Zenned

Join Date:
Jun 2009
Posts:
618
Plugin Contributions:
0

Product Info Display Page

Does anyone know ALL the files required to 'build' the product info pags?

Trying to customize my product info pages and I think I'm missing something. I know of tpl_product_info_display.php and I know that I can create a product_info.css for custom css - anything else?

21 May 2010, 4:53 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Product Info Display Page

There are many, many more files than that needed to build the product page.

If you think you may be missing files, then trying to follow the process flow isn't the way to deal with the problem.

Instead I'd recommend a full file comparison between those on your site and a fresh download of the Zen Cart release pack using a tool such as WinMerge (free) or Beyond Compare (paid-for but allows comparisons via FTP).

21 May 2010, 6:40 PM
#3
autoace avatar

autoace

Totally Zenned

Join Date:
Jun 2009
Posts:
618
Plugin Contributions:
0

Re: Product Info Display Page

I'm sorry, I think I may have stated the question wrong!

I'm not missing any files in my installation. I just wanted to know the files so that I could look at the css selectors.

I'm assuming tpl_product_info_display is the major one.

Let me ask this: the same way that tpl_main_page 'structures' the flow of zc pages, is that what tpl_product_info_page does for the product display pages, and if so is that the only page that I need to look at it, concerning the styling/flow of the product display pages.

21 May 2010, 6:51 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Product Info Display Page

OK, I understand. You're looking primarily at the template level rather than page initialisation and data prep.

In that sense the product info template does a similar job to the main page template, but just for the center panel (the main page template is still taking care of the overall page structure and there are other templates looking after the header, footer, sideboxes, etc.)

It's not the only file however, as if you look inside it, it loads other template files as it needs them.

These together will cover most of the content on the page, however some of the HTML for attributes is generated by the includes/modules/attributes.php file.

For styling though, code inspection is still not the best way to find out what tags and selectors are available. Better is a tool such as Firebug, or the developer tools in IE8 and Google Chrome that allow you to inspect each element and understand what is available to hang your css on, and even try it to see if it will work.