Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jan 2010
    Posts
    2
    Plugin Contributions
    0

    Default Zen Cart does not recognize my custom page.

    So I've set up a new page in includes/modules/my_template_name/pages/specials/main_template_vars.php, and I've updated the file to make some changes in the layout. But my shopping cart seem to not be reading the template I set up.

    I know the changes I set up are working because I've tried them on the main includes/modules/main_template_vars.php and they work perfectly. I'd rather not have that file be the main dependent file for the layout change, does anyone know of why my cart may not be pulling the correct file for layout?

    Thanks

  2. #2
    Join Date
    Jun 2003
    Location
    Newcastle UK
    Posts
    2,930
    Plugin Contributions
    4

    Default Re: Zen Cart does not recognize my custom page.

    Hi,

    Not sure why you are using main_template_vars.php to override a template.

    Normally, if you just want to override a template, then all you need to do is create the template in

    includes/templates/MY_TEMPLATE/templates/

    see

    https://www.zen-cart.com/tutorials/index.php?article=36


    for more details

  3. #3
    Join Date
    Jan 2010
    Posts
    2
    Plugin Contributions
    0

    Default Re: Zen Cart does not recognize my custom page.

    Hi,

    Thanks for helping out, the reason I was modifying the file in that location was because I got the home "features" box area to work properly by adding a folder inside the main modules folder, after the name of my template.

    Then I duplicated the "featured_products.php" into my new folder made the modifications I needed and zen cart read it properly. So I assumed the specials page would work the same way. But when i duplicated the specials page and moved it into that folder it did not recognize the changes.

    I knew it was the correct file because if I modified the live one, it worked perfectly.

    should i not be using a templated file in the modules folder at all?

    thanks

  4. #4
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Zen Cart does not recognize my custom page.

    Anywhere you see a /classic/ folder, you can create a folder for your custom template.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

 

 

Similar Threads

  1. zen cart does not see my logo image
    By jgroleau in forum General Questions
    Replies: 3
    Last Post: 20 Jul 2009, 11:28 PM
  2. How does Zen-Cart "know" what your "custom" directory is?
    By alicia1234 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 4 Dec 2008, 01:46 AM
  3. My Zen Cart does not work after server crash
    By idtags in forum General Questions
    Replies: 10
    Last Post: 21 Oct 2007, 04:30 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