Guest Posted March 5, 2006 Posted March 5, 2006 This is a question about the contribution Shipping Address Match located here: http://www.oscommerce.com/community/contri...h,address+match I need to ultimately have the customer's delivery and billing addresses identical *except* where somebody types a PO Box as part of the billing address. I have been told that I need to take the 'street_address' part of the billing address, and copy it to another field that you will pass through the form. I will call this 'postbox' When the form is submitted, I need to modify the REQUIRE_ADDRESS_MATCH code so that the else part of the 'if..then' statement does the following: If $postbox' is set, check that is has a valid PO box value, If it does, copy the the billing address to $billto instead of the '$address' If it doesn't, copy the $address to $billto If $postbox is NOT set, copy the $address to $billto Does anyone know what the variable name for the billing address is when it is passed through from the form? I expect that $address is the delivery address. Thanks for any help.... Quote
insomniac2 Posted March 7, 2006 Posted March 7, 2006 Is anyone interested in getting this mod to work with the RMA Addressbook enhancer contrib too? I have installed the Shipping Address Match mod and made some small changes. It works well except that when enabled and I change addressbook shipto and billto options ... Shipping Address Match still alows me to checkout. I know a few rightly placed for example... if ($shipto == $billto) { return true; etc. statements and / or possible redirects back to original href ie. tep_redirect function could probably make this baby sing. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.