Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / I messed up yet again

I messed up yet again

Views: 759

Results 1 to 8 of 8
11 Oct 2012, 9:29 PM
#1
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

I messed up yet again

I just messed up my Advanced_Search.php. I wanted to make a few simple changes in some words like change Manufacturers to Designers. I did that and FTP'd the changes and then the appearance of the file Advanced_Search.php looked all squished together. To make matters worse, I totally lost my Advanced Search on my (not live) site.

I can't figure out how to copy a file such as Advanced_Search.php to add it to an overrides folder. I figured this is an easy change, and look what happened. I have since put back the text to the original wording, but nothing has gone back to the original appearance. I wish this thing came with a restore point.

Any ideas?

11 Oct 2012, 9:49 PM
#3
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: I messed up yet again

I can't figure out how to COPY the file. I'm sure it's easy, but I can't see it. Aside from that, what could be the fix for what happened?

11 Oct 2012, 9:55 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: I messed up yet again

what could be the fix for what happened?
Download the version of ZenCart that you have and expand on your computer
Locate the fresh file and FTP it to the same location

Zen-Venom Get Bitten

11 Oct 2012, 10:07 PM
#5
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: I messed up yet again

kobra:

Download the version of ZenCart that you have and expand on your computer
Locate the fresh file and FTP it to the same location

Kobra that was perfect thank you. Now about that Copying?

11 Oct 2012, 10:16 PM
#6
joejoejoe avatar

joejoejoe

Zen Follower

Join Date:
Oct 2011
Location:
AZ
Posts:
383
Plugin Contributions:
0

Re: I messed up yet again

Copying a file on your computer is as easy as going to the folder it is in, right-clicking on the file name, and hitting copy.
Then just hit paste in the same folder and you'll get a copy of the file named originalfile-Copy. Once you move it to a different folder you can then rename it to whatever you need.

12 Oct 2012, 6:49 AM
#7
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: I messed up yet again

I'd like to try changing advanced_search.php again, and this time I'll have a back up copy. In Advanced Search, it reads:
define('ENTRY_CATEGORIES', 'Limit to Category:'); I want to change that to Limit to Designers.
Then in the drop down box it says:
define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); and I want it to read All Designers.

I made those two changes and advanced search would no longer open until I learned how to reinstall. I was very careful to keep the changes between the quote marks. Why did this happen? Do I need to try again to see if it happens again since I have the back up?

12 Oct 2012, 7:28 AM
#8
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: I messed up yet again

I got impatient and went ahead and did it :) It worked this time. I obviously made a mistake last time. It's beautiful when it works like its supposed to!