Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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....

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...