Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / override directory tree batch

override directory tree batch

Locked

Views: 2,496

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
9 Jun 2008, 3:07 AM
#1
tecbrat avatar

tecbrat

Zen Follower

Join Date:
Feb 2005
Posts:
239
Plugin Contributions:
0

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.

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.php/The_override_system_simplified

9 Jun 2008, 3:11 AM
#2
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

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.

9 Jun 2008, 3:29 AM
#3
tecbrat avatar

tecbrat

Zen Follower

Join Date:
Feb 2005
Posts:
239
Plugin Contributions:
0

Re: override directory tree batch

afo:

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 ```
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:

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

9 Jun 2008, 11:12 AM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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.

9 Jun 2008, 12:48 PM
#5
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

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.

9 Jun 2008, 1:11 PM
#6
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: override directory tree batch

TecBrat, you'll probably take this negatively :wink: 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. :smile:

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.