Forums / Templates, Stylesheets, Page Layout / overriding jscript_form_check.php

overriding jscript_form_check.php

Locked

Started by mrbert on 30 Apr 2007, 6:41 PM · Views: 3,018

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
30 Apr 2007, 6:41 PM
#1
mrbert avatar

mrbert

New Zenner

Join Date:
Jan 2007
Location:
Rotterdam NL
Posts:
76
Plugin Contributions:
0

overriding jscript_form_check.php

Hi
I got some of my overrides working and got the Idea I started to understand.
No I trie to override the jscript_form_check.php
in
/webshop/includes/modules/pages/create_account/
so I created
/webshop/includes/modules/pages/create_account/CUSTOM/
and copied the jscript_form_check.php from the original folder and editted that file
and also:

/webshop/includes/modules/pages/login/
so I created
/webshop/includes/modules/pages/login/CUSTOM/
and copied the jscript_form_check.php from the original folder and editted that file

When I replace the file in the original folder I can see my changes work.
But when I try them in the custom folder nothing happens:S

Where did I go wrong??

Mr Bert
Two of the shops I worked on:
http://stockphoto.mrbertdesign.nl/
http://www.luxim.nl

30 Apr 2007, 7:12 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,747
Plugin Contributions:
56

Re: overriding jscript_form_check.php

Files in modules/pages are not overridable.

http://www.zen-cart.com/wiki/index.php/Developers_API_Overrides

Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

30 Apr 2007, 8:24 PM
#3
mrbert avatar

mrbert

New Zenner

Join Date:
Jan 2007
Location:
Rotterdam NL
Posts:
76
Plugin Contributions:
0

Re: overriding jscript_form_check.php

OK thanks,

Missed that one.
I willl think of somehing to reminde me what changed there:)

Mr Bert
Two of the shops I worked on:
http://stockphoto.mrbertdesign.nl/
http://www.luxim.nl

30 Apr 2007, 8:31 PM
#4
afo avatar

afo

Totally Zenned

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

Re: overriding jscript_form_check.php

mrbert:

OK thanks,

Missed that one.
I willl think of somehing to reminde me what changed there:)

Keep a copy of the changed file in your "custom" directory even though the override doesn't apply. At least the changed files will be isolated making them easy to find.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

30 Apr 2007, 10:46 PM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,747
Plugin Contributions:
56

Re: overriding jscript_form_check.php

mrbert:

OK thanks,

Missed that one.
I willl think of somehing to reminde me what changed there:)

Use a convention that's memorable to you. What I do is rename the original file "<filename>.orig."
Then at upgrade time, I do a find on all the *.orig files, and I know what I need to worry about.

Good luck,
Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

1 May 2007, 12:12 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: overriding jscript_form_check.php

... or just do a text-compare between an original untouched fileset vs your actual live customized fileset.

.
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.