Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2007
    Location
    Rotterdam NL
    Posts
    76
    Plugin Contributions
    0

    help question 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??

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,536
    Plugin Contributions
    127

    Default Re: overriding jscript_form_check.php

    Files in modules/pages are not overridable.

    http://www.zen-cart.com/wiki/index.p..._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.

  3. #3
    Join Date
    Jan 2007
    Location
    Rotterdam NL
    Posts
    76
    Plugin Contributions
    0

    Default Re: overriding jscript_form_check.php

    OK thanks,

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

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

    Default Re: overriding jscript_form_check.php

    Quote Originally Posted by mrbert View Post
    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.

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,536
    Plugin Contributions
    127

    Default Re: overriding jscript_form_check.php

    Quote Originally Posted by mrbert View Post
    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.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

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

 

 

Similar Threads

  1. Meta_tags.php not overriding english.php
    By Servelan in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Apr 2011, 12:21 AM
  2. Replies: 6
    Last Post: 11 May 2009, 03:35 AM
  3. Overriding header.php file
    By GaryNick in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 21 Nov 2006, 02:16 AM
  4. Manufacturers_select.php Not overriding
    By Blitz49 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Sep 2006, 07:02 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