Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31
  1. #1
    Join Date
    Jan 2008
    Posts
    1,710
    Plugin Contributions
    6

    Default PO Box Ban [support thread]

    This is the support thread for the PO Box Ban contribution.

    This mod effectively bans PO Box addresses from being used on your store.

    It works by comparing the customer's address at sign-up with a range of words/letters often used with these addresses. Errors are displayed via the messageStack. The 'add shipping address' at checkout is also validated.

    Installation is simple with only 3 files.

    This mod can be found in the Downloads section:
    http://www.zen-cart.com/index.php?ma...oducts_id=1031

  2. #2
    Join Date
    Mar 2008
    Location
    Southeast Louisiana
    Posts
    25
    Plugin Contributions
    0

    Default Re: PO Box Ban [support thread]

    Steven300,

    Will this mod work with version 1.3.7?

    Thanks,

    Doc
    Aicklen Optics - What you see...is what you get!

  3. #3
    Join Date
    Jan 2008
    Posts
    1,710
    Plugin Contributions
    6

    Default Re: PO Box Ban [support thread]

    Quote Originally Posted by direwolf View Post
    Will this mod work with version 1.3.7?
    It was written specifically for 1.3.8 but adapting it for 1.3.7 should be quite easy. Make a copy of your includes/modules/create_account.php file and override it in its corresponding override folder. Do the same for includes/modules/checkout_new_address.php. Then follow the instructions in the Merging section of the readme file. The third file, po_box_ban_defines.php, should be fine.

  4. #4
    Join Date
    Mar 2008
    Location
    Southeast Louisiana
    Posts
    25
    Plugin Contributions
    0

    Default Re: PO Box Ban [support thread]

    Thanks, Steven! Works like a charm!
    Aicklen Optics - What you see...is what you get!

  5. #5
    Join Date
    Apr 2007
    Posts
    72
    Plugin Contributions
    0

    Default Re: PO Box Ban [support thread]

    Just installed this. When the user enters a PO Box from the checkout page it blocks it. However, if the user logs into his account, adds a new entry in the address book that is a PO Box and then places the order it doesn't block it. Also, on the "estimate shipping" page it shows no shipping options when the PO Box address is selected rather than showing an error message. Does someone know how I would fix these problems? Thanks.

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

    Default Re: PO Box Ban [support thread]

    Hi Jordana. Currently the contribution only validates the sign-up page and the 'add shipping address' at checkout. I did consider also validating the My Account area though I chose against this mainly because no overrides are available, and also because I felt that the majority of customers would be stopped either at sign-up or checkout and would consequently get the idea that PO Box addresses aren't welcome.

    If you still want to validate the My Account area, you need to do the following. (This will validate both the Add Address and the Edit Address function).

    Find this file:
    includes/modules/pages/address_book_process/header_php.php

    Just below this:
    PHP Code:
    if (strlen($street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH) {
    $error true;
    $messageStack->add('addressbook'ENTRY_STREET_ADDRESS_ERROR);

    Add this:
    PHP Code:
    // BEGIN PO Box Ban 1/1
    if (eregi('PO BOX'$street_address)) {
    $error true;
    $messageStack->add('addressbook'PO_BOX_ERROR);
    } else if (
    eregi('POBOX'$street_address)) {
    $error true;
    $messageStack->add('addressbook'PO_BOX_ERROR);
    } else if (
    eregi('P.O.'$street_address)) {
    $error true;
    $messageStack->add('addressbook'PO_BOX_ERROR);
    } else if (
    eregi('P.O'$street_address)) {
    $error true;
    $messageStack->add('addressbook'PO_BOX_ERROR);
    } else if (
    eregi('PO.'$street_address)) {
    $error true;
    $messageStack->add('addressbook'PO_BOX_ERROR);
    }
    // END PO Box Ban 1/1 
    As previously mentioned, you will have to overwrite this file.

    I will add these instructions to the mod in case anyone else wants to do the same.

  7. #7
    Join Date
    Apr 2007
    Posts
    72
    Plugin Contributions
    0

    Default Re: PO Box Ban [support thread]

    Thanks so much. I'll give it a try.

  8. #8
    Join Date
    Sep 2007
    Posts
    35
    Plugin Contributions
    0

    Default Re: PO Box Ban [support thread]

    Hi. Request from shop owner: allow P.O. boxes on billing addresses, not on shipping addresses. We're getting a lot of complaints. possible?

  9. #9
    Join Date
    Jan 2008
    Posts
    1,710
    Plugin Contributions
    6

    Default Re: PO Box Ban [support thread]

    Quote Originally Posted by hzp View Post
    Hi. Request from shop owner: allow P.O. boxes on billing addresses, not on shipping addresses. We're getting a lot of complaints. possible?
    I think the easiest way would be to not upload the following file from the mod:
    includes/modules/YOUR_TEMPLATE/create_account.php

    This file controls the page where customers are to enter their billing information.

    If already uploaded, delete or unmerge the file.

  10. #10
    Join Date
    Sep 2007
    Posts
    35
    Plugin Contributions
    0

    Default Re: PO Box Ban [support thread]

    I think the easiest way would be to not upload the following file from the mod:
    includes/modules/YOUR_TEMPLATE/create_account.php

    This file controls the page where customers are to enter their billing information.

    If already uploaded, delete or unmerge the file.
    unfortunately, merely deleting it seems to just result in it allowing ALL PO boxes... shipping and billing.

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. v154 News Box Manager v2.0.0 [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 63
    Last Post: 7 Jul 2019, 12:24 PM
  2. Hebrew Support - new release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 10
    Last Post: 17 May 2019, 09:18 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