Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    May 2008
    Posts
    188
    Plugin Contributions
    0

    Default Re: [Done 1.3.7, 1.3.9] Minimum value of zero gets validated incorrectly in JS formch

    Hi guys,

    I'm in a spot of trouble with this. Am using 1.3.8a and now need postcodes to be left blank - I believe I have followed all of the above but my main login page still throws up an error message for 0 characters in the post code. The other pages like account edit etc are not doing this at all.

    Have also commented out from my templates create account page.

    // if (strlen($postcode) < ENTRY_POSTCODE_MIN_LENGTH) {
    // $error = true;
    // $messageStack->add_session('login', ENTRY_POST_CODE_ERROR);
    // }

    as suggested in another thread.


    I see this is flagged as being fixed in 1.3.9 - I really don't want to go through the entire upgrade process just yet. Is it safe to replace th entire includes/modules/pages folder with one from 1.3.9 or is there other changes referenced within this that would cause issues.

    Would really appreciate any help on this.

  2. #2
    Join Date
    May 2008
    Posts
    188
    Plugin Contributions
    0

    Default Re: [Done 1.3.7, 1.3.9] Minimum value of zero gets validated incorrectly in JS formch

    Just an update - turning off the split login page which means customers have to sign up on the create account pgae rather than the login page works fine - this isolates it to the login page itself.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: [Done 1.3.7, 1.3.9] Minimum value of zero gets validated incorrectly in JS formch

    See post #2 earlier in this thread.
    .

    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.

  4. #4
    Join Date
    May 2008
    Posts
    188
    Plugin Contributions
    0

    Default Re: [Done 1.3.7, 1.3.9] Minimum value of zero gets validated incorrectly in JS formch

    I had already done this and robaxs list as well. The only page that is still causing the error is the combined login/create account page which I understand is based off includes/modules/pages/login/jscript_form_check.php

    Can't understand it tbh it's the same piece of code that worked on all the other pages. Will have a winmerge at a fresh install and see if anything else is causing issues.


  5. #5
    Join Date
    Apr 2008
    Location
    Athlone, Ireland
    Posts
    176
    Plugin Contributions
    5

    Default Re: [Done 1.3.7, 1.3.9] Minimum value of zero gets validated incorrectly in JS formch

    Hey guys, just thought I would jump in here.

    There is a very simple solution to this and its leave the box blank in Admin > Configuration > Minimum Values > Post Code

    Then you can go to /includes/languages/english.php and remove the Astrix from define('ENTRY_POST_CODE_TEXT', '*'); around line 225

    This should solve any problems with the login/create account page by stopping it from looking for any value in the post code field.

    Hope it helps, it works for me on 1.3.8a and 1.3.9

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: [Done 1.3.7, 1.3.9] Minimum value of zero gets validated incorrectly in JS formch

    You might also review this discussion: http://www.zen-cart.com/forum/showthread.php?t=75585
    .

    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. v153 Telephone number gives error when minimum value is any number above zero
    By Graniteman22 in forum General Questions
    Replies: 21
    Last Post: 8 Oct 2014, 05:38 AM
  2. v150 Database updated incorrectly when Gift Certificate covers order value?
    By boardshorts in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 3
    Last Post: 25 Dec 2013, 03:00 AM
  3. Value of main_page being returned incorrectly
    By badarac in forum General Questions
    Replies: 7
    Last Post: 7 Oct 2010, 06:42 PM
  4. Replies: 5
    Last Post: 16 Jan 2009, 10:05 AM
  5. Replies: 4
    Last Post: 14 Jan 2009, 11:45 AM

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