Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2005
    Posts
    4
    Plugin Contributions
    0

    Default Multiple tpl_main_page.php

    Apologies is this is answered elsewhere - I couldn't find it!

    I'd like to serve one tpl_main_page.php for most of my site, and a different tpl_main_page.php for product info and checkout process pages. Is there an easy way to do this using the zen cart model?

    I can post screens or links if need be, but my question is general at the moment.

    Thanks for your help!

  2. #2
    Join Date
    Dec 2005
    Posts
    4
    Plugin Contributions
    0

    Default Re: Multiple tpl_main_page.php

    Oops. This is definitely exactly answered by the Override system. I'm not really sure how I missed that part.

    For what it's worth (and in case some other bad searcher finds this), I made a folder called "shopping_cart" inside my template folder, with the appropriate tpl_main_page.php in there. Easy!

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Multiple tpl_main_page.php

    Yes, you can apply a customized version of just about any template file to a particular page.

    Look at the comments at the top of tpl_main_page.php (and a few other files I think) for starter info about this. There should be something in the FAQ/tutorials too.


    ...Great, you found it!

 

 

Similar Threads

  1. v152 tpl_main_page.php Question
    By rbarbour in forum General Questions
    Replies: 1
    Last Post: 4 Jun 2014, 05:08 AM
  2. need html_header.php & tpl_main_page.php files
    By marvin in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Nov 2011, 06:32 PM
  3. PHP help with broken tpl_main_page.php
    By HeresySnowboarding in forum General Questions
    Replies: 4
    Last Post: 18 Sep 2008, 07:48 PM
  4. Which tpl_main_page.php ???
    By zcnb in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 15 Aug 2008, 10:57 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