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
    4,489
    Plugin Contributions
    121

    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
    Scott C Wilson, That Software Guy, Plugin Moderator
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

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

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    4,489
    Plugin Contributions
    121

    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
    Scott C Wilson, That Software Guy, Plugin Moderator
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  6. #6
    Join Date
    Jan 2004
    Posts
    58,283
    Blog Entries
    3
    Plugin Contributions
    106

    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!
    Donations always welcome: www.zen-cart.com/donate

    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. sideboxes overriding header
    By cshart in forum Basic Configuration
    Replies: 2
    Last Post: 27 Apr 2010, 12:53 PM
  2. Create Account : Overriding Message Stack
    By AdamBoyle in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Jan 2007, 04:29 PM
  3. Manufacturers_select.php Not overriding
    By Blitz49 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Sep 2006, 07:02 PM
  4. Overriding Product Image Selector thru Database
    By gwkg in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 8 Jun 2006, 05:05 PM
  5. Flummoxed by Images: logo overriding but not tile_back.jpg
    By gnotapipe in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 16 May 2006, 06:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •