Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Template override problem

    Hi
    I followed these steps from tutorial for creating a new template

    https://www.zen-cart.com/tutorials/i...hp?article=142

    Code:
    Open includes/templates/ and create a new folder. You can call it anything you like, though it is best not to make it too long and to use underscores instead of spaces. We will call it /CUSTOM here, so everywhere we write /CUSTOM from now on, you should replace it with your own folder name.
    
    Create an empty folder inside your new template directory and call it images so you should have includes/templates/CUSTOM/images/.
    
    Next, copy the includes/templates/template_default/css directory and place the folder and its files in your new includes/templates/CUSTOM/ folder.
    
    You can also create the following empty folders inside your new template directory:
    
    /common
    /sideboxes
    /templates
    
    Then you copy the file called includes/templates/template_default/template_info.php, and put it inside includes/templates/CUSTOM/. Next, open includes/templates/CUSTOM/template_info.php in your text editor. Change the information below between each set of single quotes to suit your new template
    I now went to admin and select the new template
    What I now see on my cart is that although it shows all the products, but I dont see any sideboxes on the left
    Categories, New Products, Manufactures, Reviews, Information, More Information etc
    I was under the impression that overrides work only when there is a file to be changed
    Can someone help me with whats happening here or did I do something wrong
    Thanks
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

  2. #2
    Join Date
    Dec 2005
    Posts
    1,059
    Plugin Contributions
    2

    Default Re: Template override problem

    Now you need to go to the Admin/Tools/Layout Boxes Controller and hit the
    reset button at the bottom of the page.

    Or...maybe the left column is turned off in Admin/Configuration/Layout Settings?
    [FONT=Arial]Country Kitty Crafts[/FONT][FONT=Arial]
    [/FONT] [FONT=Garamond]
    [/FONT]

  3. #3
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: Template override problem

    Yeah thanks mate
    Just figured it out!! :)
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

  4. #4
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: Template override problem

    One quick question,
    If I now choose the default template and then again choose the custom template, do I again need to select Layout Boxes Controller?
    Thanks
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

  5. #5
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Template override problem

    Quote Originally Posted by superprg View Post
    One quick question,
    If I now choose the default template and then again choose the custom template, do I again need to select Layout Boxes Controller?
    Thanks
    Try it and see ... you'll see that the answer is "no"
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Template override problem

    Quote Originally Posted by superprg View Post
    Hi
    I followed these steps from tutorial for creating a new template

    https://www.zen-cart.com/tutorials/i...hp?article=142


    I now went to admin and select the new template
    What I now see on my cart is that although it shows all the products, but I dont see any sideboxes on the left
    Categories, New Products, Manufactures, Reviews, Information, More Information etc
    I was under the impression that overrides work only when there is a file to be changed
    Can someone help me with whats happening here or did I do something wrong
    Thanks
    Quote Originally Posted by TShooters View Post
    Now you need to go to the Admin/Tools/Layout Boxes Controller and hit the
    reset button at the bottom of the page.

    Or...maybe the left column is turned off in Admin/Configuration/Layout Settings?
    Quote Originally Posted by superprg View Post
    Yeah thanks mate
    Just figured it out!! :)

    You'll also see that the end of that FAQ tutorial you quoted already DOES explain the need to set the layout boxes:
    Open your Admin panel and navigate to tools -> template selection. Click the Edit button, then choose CUSTOM from the dropdown menu and click the Update button. Now, navigate to tools -> layout boxes controller and at the bottom of the page click the Reset button.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: Template override problem

    You'll also see that the end of that FAQ tutorial you quoted already DOES explain the need to set the layout boxes:
    Right, sorry for having overlooked that!
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

 

 

Similar Threads

  1. How do I override template?
    By botyflorist in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Feb 2010, 02:58 PM
  2. Template Override Issue
    By russellmcox in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 22 Jul 2009, 05:54 AM
  3. Template override System
    By andrewa124 in forum Basic Configuration
    Replies: 1
    Last Post: 21 Aug 2008, 06:09 AM
  4. Template Override Problem
    By Mista in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 20 Jul 2008, 03:58 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