PO Box Extension for Magento 2

May 18, 2018

1375 Danila Nagornov

PO Box Extension for Magento 2

Post-office box is a convenient tool, which allows its holders to keep their mail in a numbered box at a post office until needed. However, some companies don’t ship to PO boxes for various reasons: either due to fraud prevention or to a small size of PO boxes, which usually can’t contain anything larger than a couple of magazines. For this purpose, we have created the PO Box extension allowing to forbid shipping to post-office boxes.

Key features of the extension

The extension was developed for the sole purpose of forbidding shipping to PO Boxes, and that is exactly what it does. The extension searches for all possible spellings of “PO box” (p.o.b., p o box, po box, po-box, etc.) in the address field using RegExp and shows a warning if needed.


It can also exclude particular customer groups if you indicate their ID in the corresponding field.

Vlad Yunusov

Partner With Us

Let's discuss how to grow your business. Get a Free Quote.
Talk to Vlad

Configuring the extension

You can configure the extension at Stores ➞ Settings ➞ Configuration ➞ Belvg ➞ PO Boxes. The extension configuration page has only 3 boxes, so it couldn’t be more simple.

  • In extension Enable box you can turn the extension on or off;
  • You can set exceptions to the rule for certain customer groups in Disable for Customer groups field;
  • If Only for shipping address field is enabled, the “PO box” will be restricted only for shipping address. If disabled, the “PO box” will be restricted for all addresses.

As you can see, the extension is as simple as possible and does exactly what it was created for.

You can find the PO Box extension, its fronted demo and a user guide available in our Magento 2 store.

Vlad Yunusov

Partner With Us

Looking for a partner that will help you to grow your business? We are the right company to develop your webstore. Feel free to get in touch with us. We will be happy to discuss your business opportunities and provide you with a Free Quote. Talk to Vlad

Post a new comment

BelVG Newsletter
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Email *