Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2010
    Posts
    4
    Plugin Contributions
    0

    help question Clarification needed - use admin panel or use an override file???

    Hello Peeps,

    New to the whole zencart way of doing things. Currently hacking together a site and needed to delete the search box from the header.

    Looked for an answer here on the forums and found several threads advising that you should do so via the admin panel. So I did. Worked a treat.

    Was poking around my source code with bugzilla but noticed that turning off the search box this way still left an empty <div> in its place.

    I don't like unnecessary markup hiding in my page so went about deleting it's reference from the tpl_header.php in my custom folder. Problem solved.

    My problem is this - Many of the faqs / tutorials advise removing elements like sidebars / boxes / other elements via the admin panel. Does this mean I'll end up with more needless elements lurcking in the page markup? If so, would it be better just to hack the corresponding php files and dump them in my custom folders?

    Hope this makes sense.

    Regards

    Mokijo
    Zenned and confused...

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Clarification needed - use admin panel or use an override file???

    People are going to have slightly different opinions about this.

    The safest way of doing it is to work from admin and accept the empty div. Yes, we know that that is not ideal but it maintains the flexibility of the system.

    If you feel comfortable altering the code then there is nothing inherently wrong with that. It is just that it is less reversible and the problem with an empty div is not a major one.

    Sometimes alterations from admin will create redundant code. But many times the alteration happens in the PHP so that the alterations never appear in the html. For instance, unused sideboxes should not appear in the html.

    So, I think the best advice is to leave it in there unless you feel confident and comfortable taking it out.

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

    Default Thank you for your quick response!

    Cheers for the advice Niccol!

    I guess I'll try using the admin panel first and then check the the output to see if I can live with the html zen puts out. I'm guessing that ammendments made in the admin panel won't be overwritten with core updates???

    actually, how does zen handle that? Oooh, now I am confused. Need to dig around the faq's a lil' more cos I'm not really up to date with how the system handles such things....

    Zenned and confused...

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

    Default Re: Thank you for your quick response!

    Admin settings are generally saved in the database, so are immune to overwriting during a file upgrade.

  5. #5
    Join Date
    Jan 2010
    Posts
    4
    Plugin Contributions
    0

    Default Wow on the responses!

    ... and to think I nearly chose a wordpress plugin for my ecommerce!

    What won me over was the community behind zen.

    ask a question, get a response!

    Cheers gjh42, and thanks again niccol.

    Much Love,

    Mokijo

    Zenned and confused...

 

 

Similar Threads

  1. Didn't use the override system and want to upgrade
    By Hyena in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 5 Aug 2011, 01:11 PM
  2. Use Of Override System
    By trickobrien in forum General Questions
    Replies: 4
    Last Post: 15 Aug 2010, 05:03 PM
  3. Did not use the Override System
    By res in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Aug 2008, 05:23 AM
  4. quick question. Can ALL files use template override?
    By budfox in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 14 Apr 2007, 07:57 AM
  5. how to use center panel of main display
    By onakat in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 4 Oct 2006, 11:32 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