Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Posts
    246
    Plugin Contributions
    0

    Default override directory tree batch

    I have made a windows, or dos, batch file to set up empty override directories. This might save some time.

    Copy this text and save it as whatever.bat.
    Code:
    md includes\languages\CUSTOM
    md includes\languages\english\extra_definitions\CUSTOM
    md includes\languages\english\html_includes\CUSTOM
    md includes\languages\english\modules\order_total\CUSTOM
    md includes\languages\english\modules\payment\CUSTOM
    md includes\languages\english\modules\shipping\CUSTOM
    md includes\modules\CUSTOM
    md includes\modules\sideboxes\CUSTOM
    md includes\templates\CUSTOM
    Put that in the folder where all your cart files are (the same place you see the "includes" folder) replace CUSTOM, save it, and double click on it.

    Then upload the includes folder to your site.

    I couldn't find any better way to do this. It's been a while since I did much by way of bat files though, so if there's a simpler way, I'd be glad to see it.

    I got this from the tree structure here:http://www.zen-cart.com/wiki/index.p...tem_simplified

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

    Default Re: override directory tree batch

    Ummm... why? You only need to create folders where you need them and that's simple enough to do with an FTP client or a webmaster panel.

  3. #3
    Join Date
    Feb 2005
    Posts
    246
    Plugin Contributions
    0

    Default Re: override directory tree batch

    Quote Originally Posted by afo View Post
    Ummm... why? You only need to create folders where you need them and that's simple enough to do with an FTP client or a webmaster panel.
    First, I caught an error, I missed
    Code:
    md includes\languages\english\CUSTOM
    I'll re-post at the bottom of this, to make it easy to copy and paste.

    Having the folders created before hand can help, especially for a new zenner who isn't quite sure where or when to create an override folder.

    I have a "why" question of my own.

    Why are so many of the responses on the zen-cart forum negative? Is there some reason that a few of the veterans really don't like new users, or don't like people who do things differently than everyone else?

    I have received tremendous help from some fellow zenners, but too often I see responses that instead of being helpful, come across as a slam to the OP.

    What's the deal?

    re-posting as promised:
    Code:
    md includes\languages\CUSTOM
    md includes\languages\english\CUSTOM
    md includes\languages\english\extra_definitions\CUSTOM
    md includes\languages\english\html_includes\CUSTOM
    md includes\languages\english\modules\order_total\CUSTOM
    md includes\languages\english\modules\payment\CUSTOM
    md includes\languages\english\modules\shipping\CUSTOM
    md includes\modules\CUSTOM
    md includes\modules\sideboxes\CUSTOM
    md includes\templates\CUSTOM

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: override directory tree batch

    Actually, I was planning to do somthing like this, only just create the directory tree and make it available for downloading. A batch file is a good idea, too. I wonder if you could set it up so that the user could enter the name (rather than CUSTOM) before the file creates the folders.

    No it's not necessary, but it seemed like a reasonable way to give total Zencart noobs a small 'leg up' when starting out.

    As someone who frequents a lot of message boards and forums (fora?) I have to say there's a lot less negativism here than in most places, and no outright flaming that I've ever seen.

    That said, I see replies every now and then that do make me cringe a little.

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

    Default Re: override directory tree batch

    No slam intended, but there's no reason to create a "custom" folder everywhere there's a classic folder. You only need to create a "custom" folder where you intend to edit files. Personally, I think creating a "custom" folder everywhere there's a classic folder will cause more confusion than help.

  6. #6
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: override directory tree batch

    TecBrat, you'll probably take this negatively but I hope you dont'.

    People shouldn't be thin-skinned when making posts in any Forum. No matter what you post, there will be people that question your post or are down right rude about what was posted. Such is the way things are when putting something on Public display and allowing for feedback. As such, there are times when one just ignores posting that can be disagreeable to them.

    With that said, I understand why you would post what you did but like others, also wonder how that would help someone who isn't sure where 'CUSTOM' folders go? Odds are as well that running a batch file would be even more confusing to them.

    Some will find your post helpful and some will not.

    Speaking of which, DrByte made a post on 'bat' file to remove the default stuff when not required. A Forum Search should turn it up somewhere.

 

 

Similar Threads

  1. v139h Understanding Directory Tree
    By Painted Hills NB in forum General Questions
    Replies: 8
    Last Post: 18 Dec 2013, 12:01 AM
  2. Images Directory Override
    By Randa in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Sep 2010, 07:51 PM
  3. Abillity to see contents in directory tree
    By swefil in forum Customization from the Admin
    Replies: 0
    Last Post: 5 Aug 2010, 10:06 PM
  4. Do You know of a "Directory Tree Viewer"?
    By ardhill in forum General Questions
    Replies: 3
    Last Post: 24 Jun 2010, 06:45 AM
  5. Lots of Seemingly Unnecessary Images in the images directory tree?
    By zcnb in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Sep 2008, 04:20 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