Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Posts
    73
    Plugin Contributions
    0

    Default 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?

  2. #2
    Join Date
    Jan 2008
    Posts
    73
    Plugin Contributions
    0

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

    solved it thanks to glenn

    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.

 

 

Similar Threads

  1. Different header/footer on home page only.
    By pjb923 in forum Templates, Stylesheets, Page Layout
    Replies: 31
    Last Post: 14 Jun 2011, 10:03 PM
  2. EZ Page Footer links & Footer look different only on Home
    By DivaVocals in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Aug 2008, 11:28 PM
  3. Different payment options depending on product
    By gifro10 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 2 Jun 2008, 08:28 PM
  4. Different Color for Links Depending on Page Location
    By jwashburn in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Oct 2006, 04:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg