Support » Plugin: WooCommerce: No PO Boxes » Plugin denys PO box for all shipping methods

  • Resolved Tyler


    We tried to use this plugin to deny po boxes for a single shipping methods, but it denys for all methods. I unchecked activate restrictions globally, and then it says to “please enter address” and does not validate any address we input.

    We would really like to use this plugin. Please get back to me soon.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Maje Media LLC


    @tylercyert thanks for writing in.

    The plugin only validates addresses upon clicking “Complete Checkout” or “Pay” or whatever the final button on the checkout says. There’s too many variances in front-end scripting to make a stable use of live validation.

    Can you submit a screenshot of your settings page when it denys for all methods?

    Also, are you using any shipping plugins that don’t come from the store? There’s been problems in the past with some methods not registering via WC’s shipping method registration which means the No PO Boxes plugin can’t see the shipping method.

    Thread Starter Tyler


    We do not need live feedback for po box, all of our tests were done by actually inserting a test payment method or paying via paypal.

    Screenshot of our shop page before and after we attempt to pay when we have ‘Enable Globally’ checked:

    …And when ‘enable globally’ is unchecked: it doesn’t restrict po box at all.

    We are using Flexible Shipping for woocommerce. Link:

    Here’s a screenshot of our settings:

    If we check ‘Enable globally’ we can get the message to pop up for all shipping methods, but we need to allow USPS for po box shipping.

    • This reply was modified 11 months ago by Tyler.
    Thread Starter Tyler


    I resolved this myself. Flexible shipping renames shipping methods to…

    I don’t know what x and y are or how they are calculated but I used var_dump() to discover this. I ended up putting my coding gloves on and was able to develop my own function for this.

    Even though we were unable to use your plugin, I hope this information will be helpful for your future support tickets. Thank you for your help!

    We are having the same issues, could you please share your solution?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin denys PO box for all shipping methods’ is closed to new replies.