[Skip to main content](#vessel-content)

#   Don't allow PO Box shipping addresses

##

- **[webmaster@pulldog.us](/forum/user/44734-webmaster-pulldog-us "View webmaster@pulldog.us's Profile")**
- [![webmaster@pulldog.us's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44734-webmaster-pulldog-us "View webmaster@pulldog.us's Profile") Topic Author
- [ Offline](/forum/user/44734-webmaster-pulldog-us)

Less More

- Posts: 3
- Thank you received: 0
-
-

10 years 1 month ago [\#253420](#253420) by [webmaster@pulldog.us](/forum/user/44734-webmaster-pulldog-us "View webmaster@pulldog.us's Profile")  *[Don't allow PO Box shipping addresses](/forum/28-shipping-methods/887123-dont-allow-po-box-shipping-addresses#253420 "Is there a way to disallow PO Boxes in the shipping address?  Thanks  Jeremy")* was created by *[webmaster@pulldog.us](/forum/user/44734-webmaster-pulldog-us "View webmaster@pulldog.us's Profile")*

Is there a way to disallow PO Boxes in the shipping address?

Thanks

Jeremy

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvODg3MTIzLWRvbi10LWFsbG93LXBvLWJveC1zaGlwcGluZy1hZGRyZXNzZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

10 years 1 month ago [\#253453](#253453) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Don't allow PO Box shipping addresses](/forum/28-shipping-methods/887123-dont-allow-po-box-shipping-addresses#253453 "Is there a way to disallow PO Boxes in the shipping address?  Thanks  Jeremy")*

Hi,

Yes. You can edit the field "address_street" via the menu Display&gt;Custom fields and use the "regular expression check" setting to forbid the use of PO Boxes.
For example, such regex: Code:

^(?i)(?!p\.?o\.?\sbox&#124;post\soffice).*$

[ stackoverflow.com/questions/16722720/how-to-negate-po-box-regex](http://stackoverflow.com/questions/16722720/how-to-negate-po-box-regex)

The following user(s) said Thank You: [webmaster@pulldog.us](/forum/user/44734-webmaster-pulldog-us "View webmaster@pulldog.us's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvODg3MTIzLWRvbi10LWFsbG93LXBvLWJveC1zaGlwcGluZy1hZGRyZXNzZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[webmaster@pulldog.us](/forum/user/44734-webmaster-pulldog-us "View webmaster@pulldog.us's Profile")**
- [![webmaster@pulldog.us's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44734-webmaster-pulldog-us "View webmaster@pulldog.us's Profile") Topic Author
- [ Offline](/forum/user/44734-webmaster-pulldog-us)

Less More

- Posts: 3
- Thank you received: 0
-
-

10 years 1 month ago [\#253538](#253538) by [webmaster@pulldog.us](/forum/user/44734-webmaster-pulldog-us "View webmaster@pulldog.us's Profile")  Replied by *[webmaster@pulldog.us](/forum/user/44734-webmaster-pulldog-us "View webmaster@pulldog.us's Profile")* on topic *[Don't allow PO Box shipping addresses](/forum/28-shipping-methods/887123-dont-allow-po-box-shipping-addresses#253538 "Is there a way to disallow PO Boxes in the shipping address?  Thanks  Jeremy")*

Cool thanks.

Is there a way to allow PO Boxes in Billing but not in the Shipping address?

Thanks

Jeremy

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvODg3MTIzLWRvbi10LWFsbG93LXBvLWJveC1zaGlwcGluZy1hZGRyZXNzZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

10 years 1 month ago [\#253551](#253551) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Don't allow PO Box shipping addresses](/forum/28-shipping-methods/887123-dont-allow-po-box-shipping-addresses#253551 "Is there a way to disallow PO Boxes in the shipping address?  Thanks  Jeremy")*

Hi,

There is no option for that for now as you can't have fields for one type of address and not for the other type.
You would have to do the check with custom javascript instead if you wanted to do that, but you would have to ask a developer to do that for you in that case.

The following user(s) said Thank You: [webmaster@pulldog.us](/forum/user/44734-webmaster-pulldog-us "View webmaster@pulldog.us's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvODg3MTIzLWRvbi10LWFsbG93LXBvLWJveC1zaGlwcGluZy1hZGRyZXNzZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[webmaster@pulldog.us](/forum/user/44734-webmaster-pulldog-us "View webmaster@pulldog.us's Profile")**
- [![webmaster@pulldog.us's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44734-webmaster-pulldog-us "View webmaster@pulldog.us's Profile") Topic Author
- [ Offline](/forum/user/44734-webmaster-pulldog-us)

Less More

- Posts: 3
- Thank you received: 0
-
-

10 years 4 weeks ago [\#253880](#253880) by [webmaster@pulldog.us](/forum/user/44734-webmaster-pulldog-us "View webmaster@pulldog.us's Profile")  Replied by *[webmaster@pulldog.us](/forum/user/44734-webmaster-pulldog-us "View webmaster@pulldog.us's Profile")* on topic *[Don't allow PO Box shipping addresses](/forum/28-shipping-methods/887123-dont-allow-po-box-shipping-addresses#253880 "Is there a way to disallow PO Boxes in the shipping address?  Thanks  Jeremy")*

Thanks for the info.

Jeremy

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvODg3MTIzLWRvbi10LWFsbG93LXBvLWJveC1zaGlwcGluZy1hZGRyZXNzZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.077 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
