Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 35
  1. #11
    Join Date
    Sep 2007
    Posts
    35
    Plugin Contributions
    0

    Default Re: PO Box Ban [support thread]

    ok. new problem. we are occasionally getting false PO box denies on addresses that are neither PO boxes or resemble PO boxes. hrrrrrm?

    for instance, today one came in that was 568 Wagon Circle

  2. #12
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: PO Box Ban [support thread]

    Are you saying that "568 Wagon Circle" gets denied because I can't replicate that. Looking at the code, I can't see how a normal address could be caught by the mod. Have you customised the code at all?

    PHP Code:
    // BEGIN PO Box Ban 1/1
        
    if (eregi('PO BOX'$street_address)) {
          
    $error true;
          
    $messageStack->add('create_account'PO_BOX_ERROR);
        } else if (
    eregi('POBOX'$street_address)) {
          
    $error true;
          
    $messageStack->add('create_account'PO_BOX_ERROR);
        } else if (
    eregi('P.O.'$street_address)) {
          
    $error true;
          
    $messageStack->add('create_account'PO_BOX_ERROR);
        } else if (
    eregi('P.O'$street_address)) {
          
    $error true;
          
    $messageStack->add('create_account'PO_BOX_ERROR);
        } else if (
    eregi('PO.'$street_address)) {
          
    $error true;
          
    $messageStack->add('create_account'PO_BOX_ERROR);
        }
    // END PO Box Ban 1/1 
    If you do know of an address that gets caught when it shouldn't, either now or sometime in the future, let me know what it is (or a slight varient of it) and I will modify the mod for you. But until then there's not much I can do.

  3. #13
    Join Date
    Sep 2007
    Posts
    35
    Plugin Contributions
    0

    Default Re: PO Box Ban [support thread]

    haven't modded the code at all. suddenly today, they've gotten 3 calls from people who can't register because of the PO box ban.

  4. #14
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: PO Box Ban [support thread]

    Strange. Well as I say, if you can replicate it just let me know the details. In the meantime, you might advise them to take down the mod if they don't want the problem repeated.

  5. #15
    Join Date
    Sep 2007
    Posts
    35
    Plugin Contributions
    0

    Default Re: PO Box Ban [support thread]

    I was able to replicate it in three cases. All of which had the letters P and O in the street name. If I changed one or the other, they went through.

    Now, in one case its Pioneer. So its not as if they have to be right next to eachother, either. And there's no period, etc.

    Any ideas? the cart is prettybabynaturals.com

  6. #16
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: PO Box Ban [support thread]

    You're right, "Pioneer" does get denied. I believe it's because the .(dot) character has special meaning. I have been testing with the following code and it seems to be more accurate..

    PHP Code:
    // BEGIN PO Box Ban 1/1
        
    if ( preg_match('/PO BOX/si'$street_address) ) {
          
    $error true;
          
    $messageStack->add('create_account'PO_BOX_ERROR);
        } else if ( 
    preg_match('/POBOX/si'$street_address) ) {
          
    $error true;
          
    $messageStack->add('create_account'PO_BOX_ERROR);
        } else if ( 
    preg_match('/P\.O\./si'$street_address) ) {
          
    $error true;
          
    $messageStack->add('create_account'PO_BOX_ERROR);
        } else if ( 
    preg_match('/P\.O/si'$street_address) ) {
          
    $error true;
          
    $messageStack->add('create_account'PO_BOX_ERROR);
        } else if ( 
    preg_match('/PO\./si'$street_address) ) {
          
    $error true;
          
    $messageStack->add('create_account'PO_BOX_ERROR);
        }
    // END PO Box Ban 1/1 
    This is for includes/modules/your_template/create_account.php

  7. #17
    Join Date
    Sep 2007
    Posts
    35
    Plugin Contributions
    0

    Default Re: PO Box Ban [support thread]

    THANK you. i think that worked..... I can't tell you how much I appreciate you taking the time to examine this for me, and follow up.

  8. #18
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: PO Box Ban [support thread]

    No problem, thanks for confirming it worked

  9. #19
    Join Date
    Jul 2008
    Posts
    26
    Plugin Contributions
    0

    Default Re: PO Box Ban [support thread]

    Hello! Using Zen Cart v 1.3.8. I want to make sure that I am correct before installing PO BOX BAN. We would like the PO BOX BAN on the shipping address and not on the billing address. Therefore, we install everything but the one part quoted above? (includes/modules/YOUR_TEMPLATE/create_account.php) and changing the code to tis:

    // BEGIN PO Box Ban 1/1
    if ( preg_match('/PO BOX/si', $street_address) ) {
    $error = true;
    $messageStack->add('create_account', PO_BOX_ERROR);
    } else if ( preg_match('/POBOX/si', $street_address) ) {
    $error = true;
    $messageStack->add('create_account', PO_BOX_ERROR);
    } else if ( preg_match('/P\.O\./si', $street_address) ) {
    $error = true;
    $messageStack->add('create_account', PO_BOX_ERROR);
    } else if ( preg_match('/P\.O/si', $street_address) ) {
    $error = true;
    $messageStack->add('create_account', PO_BOX_ERROR);
    } else if ( preg_match('/PO\./si', $street_address) ) {
    $error = true;
    $messageStack->add('create_account', PO_BOX_ERROR);
    }
    // END PO Box Ban 1/1

    for the includes/modules/your_template/create_account.php

    Just making sure! I've already made a backup of course too!

  10. #20
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: PO Box Ban [support thread]

    Hi, installing everything except the code you mentioned would prevent customers from entering PO Box addresses for shipping, whilst allowing PO Box addresses being entered for billing. However, this mod only validates form submissions so with the approach you are thinking of taking, it's conceivable that a customer could enter their PO Box address for billing, then let that address also be the shipping address, effectively avoiding any validated forms. Ideally the mod should check for this, but until then, I think applying the mod to all address forms is the only guaranteed way of 'banning' them.

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 19
    Last Post: 23 Jan 2023, 08:04 AM
  2. v154 News Box Manager v2.0.0 [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 84
    Last Post: 19 Jan 2021, 04:17 PM
  3. v138a PO Box Ban 1.4 [support thread]
    By mvstudio in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 1 Feb 2018, 07:07 PM
  4. Commentics [Support Thread]
    By Commentics in forum All Other Contributions/Addons
    Replies: 11
    Last Post: 30 Jan 2013, 10:11 PM
  5. Contact Us IP Ban [Support Thread]
    By 1100101 in forum All Other Contributions/Addons
    Replies: 13
    Last Post: 9 Nov 2010, 01:11 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR