Downloads
This module adds a validation function to the checkout form to prevent customers from specifying P.O. boxes as their delivery address. It's very lightweight and will just sit here for now. 
| Preview | Attachment | Size |
|---|---|---|
| uc_nopobox.zip | 1.09 KB |
|
Ubercart |
|
|
|
||
Re: No P.O. Box
Just a heads up to those that come across this, that uc_po_condition is similar to this module, except that it is used for determining different shipping methods if delivery is to a P.O. Box.
Re: Re: No P.O. Box
UC P.O. Condition is for Drupal 6 only. Does anyone have a version for Drupal 5 they would be willing to share? Is the port to 5 a lot of work?
Re: Re: Re: No P.O. Box
The original PO Condition posted as a contrib on this site is actually for d5 and should work.
no
Nah, only works with UC1. Anyone interested in porting it to UC2? I think a lot of people would embrace such an idea.
D6 version
used deadwood module to convert, seems to work just fine (drupal 6.15/ubercart 2)
Workflow-ng Solution
Instead of disabling all PO Box shipping - since USPS does ship to PO Box, I would recommend setting up a Workflow-ng for FedEx to disable for PO Box address. Below is the code I have used to setup a custom PHP code workflow with Negates option checked: <?phpNOTE: This forum puts <? php ?> for code block, but you DO NOT need those when you put this in the custom PHP code (please copy between those two). And it works perfectly when someone puts in a PO Box shipping address - it only shows USPS - otherwise it shows FedEx for all normal addresses. Hope this helps others!
Re: No P.O. Box
Please see my comments here -> http://drupal.org/node/663636 |
|