Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Selecting a different footer.php depending on loaded page?

Selecting a different footer.php depending on loaded page?

Locked

Views: 1,148

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
24 Feb 2010, 7:00 AM
#1
borillion_star avatar

borillion_star

New Zenner

Join Date:
Jan 2008
Posts:
73
Plugin Contributions:
0

Selecting a different footer.php depending on loaded page?

I would like to use a second footer called product_footer.php when customers are viewing a product, I know I have to change tpl_main_page.php, Im having trouble with the if statement.

if (in_array($current_page_base,explode('product_info')) )

how do I correct this?:frusty:

24 Feb 2010, 7:21 AM
#2
borillion_star avatar

borillion_star

New Zenner

Join Date:
Jan 2008
Posts:
73
Plugin Contributions:
0

Re: Selecting a different footer.php depending on loaded page?

solved it thanks to glenn:clap:

Just put your custom copy of tpl_header.php or tpl_footer.php in /includes/templates/your_template/product_info/, and Zen Cart will automatically use it when in the product info page.:clap: